次の方法で共有


Get-AzActivityLogAlert

Gets one or more activity log alert resources.

構文

GetByNameAndResourceGroup

Get-AzActivityLogAlert
    [-ResourceGroupName] <String>
    [-Name] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

GetByResourceGroup

Get-AzActivityLogAlert
    [[-ResourceGroupName] <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

The Get-AzActivityLogAlert cmdlet gets one or more activity log alert resources.

Example 1: Get a activity log alerts by subscription ID

PS C:\>Get-AzActivityLogAlert

This command lists all the activity log alerts for the current subscription.

Example 2: Get activity log alerts for the given resource group

PS C:\>Get-AzActivityLogAlert -ResourceGroupName "Default-activityLogAlerts"

This command lists activity log alerts for the given resource group.

Example 3: Get an activity log alert.

PS C:\>Get-AzActivityLogAlert -ResourceGroupName "Default-activityLogAlerts" -Name "alert1"

This command lists one (a list with a single element) activity log alert.

パラメーター

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

The name of the activity log alert.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetByNameAndResourceGroup
配置:1
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-ResourceGroupName

The name of the resource group where the alert resource exists. If Name is not null or empty, this parameter must contain and non empty string.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetByNameAndResourceGroup
配置:0
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

入力

String

出力

PSActivityLogAlertResource