Get-AzActivityLogAlert
取得活動記錄警示規則。
語法
Get-AzActivityLogAlert
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzActivityLogAlert
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzActivityLogAlert
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzActivityLogAlert
-InputObject <IActivityLogAlertIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得活動記錄警示規則。
範例
範例 1:列出目前訂用帳戶下的活動記錄警示
Get-AzActivityLogAlert
列出目前訂用帳戶底下的活動記錄警示
範例 2:列出資源群組下的活動記錄警示
Get-AzActivityLogAlert -ResourceGroupName $rg-name
列出資源群組底下的活動記錄警示
範例 3:依名稱取得活動記錄警示
Get-AzActivityLogAlert -ResourceGroupName $rg-name -Name $alert-name
依名稱取得活動記錄警示
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | IActivityLogAlertIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
活動記錄警示規則的名稱。
類型: | String |
別名: | ActivityLogAlertName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
目標訂用帳戶的標識碼。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |