external help file | Module Name | ms.assetid | online version | schema |
---|---|---|---|---|
Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll-Help.xml |
Az.Monitor |
85492E00-3776-4F20-A444-9C28CC6154B7 |
2.0.0 |
Gets one or more activity log alert resources.
Get-AzActivityLogAlert [-ResourceGroupName] <String> [-Name] <String>
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzActivityLogAlert [[-ResourceGroupName] <String>] [-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
The Get-AzActivityLogAlert cmdlet gets one or more activity log alert resources.
PS C:\>Get-AzActivityLogAlert
This command lists all the activity log alerts for the current subscription.
PS C:\>Get-AzActivityLogAlert -ResourceGroupName "Default-activityLogAlerts"
This command lists activity log alerts for the given resource group.
PS C:\>Get-AzActivityLogAlert -ResourceGroupName "Default-activityLogAlerts" -Name "alert1"
This command lists one (a list with a single element) activity log alert.
The credentials, account, tenant, and subscription used for communication with azure
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the activity log alert.
Type: System.String
Parameter Sets: GetByNameAndResourceGroup
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
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.
Type: System.String
Parameter Sets: GetByNameAndResourceGroup
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: System.String
Parameter Sets: GetByResourceGroup
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.