Get-AzElasticTagRule
取得指定監視資源的標籤規則集。
Syntax
Get-AzElasticTagRule
-MonitorName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticTagRule
-InputObject <IElasticIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得指定監視資源的標籤規則集。
範例
範例 1:取得指定監視資源的卷標規則集
Get-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02
Name ProvisioningState ResourceGroupName
---- ----------------- -----------------
default Succeeded azure-elastic-test
此命令會取得指定監視資源的標記規則集。
範例 2:依管線取得指定監視資源的卷標規則集
New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 | Get-AzElasticTagRule
Name ProvisioningState ResourceGroupName
---- ----------------- -----------------
default Succeeded azure-elastic-test
此命令會依管線取得指定監視資源的標記規則集。
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IElasticIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-MonitorName
監視資源名稱
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
彈性資源所屬的資源群組名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Azure 訂閱識別碼。 這是 GUID 格式的字串(例如 0000000000-0000-0000-0000-0000000000000000)
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
輸出
備註
別名
COMPLEX PARAMETER PROPERTIES
若要建立以下所述的參數,請建構包含適當屬性的哈希表。 如需哈希表的相關信息,請執行 Get-Help about_Hash_Tables。
INPUTOBJECT <IElasticIdentity>
:Identity 參數
[Id <String>]
:資源識別路徑[MonitorName <String>]
:監視資源名稱[ResourceGroupName <String>]
:彈性資源所屬的資源群組名稱。[RuleSetName <String>]
:卷標規則集資源名稱[SubscriptionId <String>]
:Azure 訂用帳戶標識碼。 這是 GUID 格式的字串(例如 0000000000-0000-0000-0000-0000000000000000)
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應