Skip to content

Latest commit

 

History

History
137 lines (100 loc) · 3.38 KB

Get-AzActivityLogAlert.md

File metadata and controls

137 lines (100 loc) · 3.38 KB
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

Get-AzActivityLogAlert

SYNOPSIS

Gets one or more activity log alert resources.

SYNTAX

GetByNameAndResourceGroup

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

GetByResourceGroup

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

DESCRIPTION

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

EXAMPLES

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.

PARAMETERS

-DefaultProfile

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

-Name

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

-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.

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

CommonParameters

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

INPUTS

System.String

OUTPUTS

Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource

NOTES

RELATED LINKS

Set-AzActivityLogAlert

Update-AzActivityLogAlert

Remove-AzActivityLogAlert

New-AzActionGroup

New-AzActivityLogAlertCondition