Get-AzElasticMonitor
取得特定監視資源的屬性。
Syntax
Get-AzElasticMonitor
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticMonitor
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticMonitor
-InputObject <IElasticIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticMonitor
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得特定監視資源的屬性。
範例
範例 1:列出訂用帳戶下的所有彈性監視器
Get-AzElasticMonitor
Name SkuName MonitoringStatus Location ResourceGroupName
---- ------- ---------------- -------- -----------------
kk-elastictest02 ess-monthly-consumption_Monthly Enabled westus2 kk-rg
kk-elastictest03 ess-monthly-consumption_Monthly Enabled westus2 kk-rg
wusDeployValidate ess-monthly-consumption_Monthly Enabled westus2 poshett-rg
poshett-WestUS2-01 staging_Monthly Enabled westus2 poshett-rg
hashahdemo01 staging_Monthly Enabled westus2 test-sub
此命令會列出訂用帳戶下的所有彈性監視器。
範例 2:列出資源群組下的所有彈性監視器
Get-AzElasticMonitor -ResourceGroupName azure-elastic-test
Name SkuName MonitoringStatus Location ResourceGroupName
---- ------- ---------------- -------- -----------------
elastic-portal01 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test
elastic-portal02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test
elastic-pwsh01 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test
elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test
此命令會列出資源群組下的所有彈性監視器。
範例 3:取得特定監視資源的屬性
Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02
Name SkuName MonitoringStatus Location ResourceGroupName
---- ------- ---------------- -------- -----------------
elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test
此命令會取得特定監視資源的屬性。
範例 4:依管線取得特定監視資源的屬性
New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -Sku "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' | Get-AzElasticMonitor
Name SkuName MonitoringStatus Location ResourceGroupName
---- ------- ---------------- -------- -----------------
elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 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 |
-Name
監視資源名稱
Type: | String |
Aliases: | MonitorName |
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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應