你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzAlertProcessingRule

Get AlertProcessing Rules Information

Syntax

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

Description

Get-AzAlertProcessingRule cmdlet gets alert processing rules configured.

Examples

Example 1

Get-AzAlertProcessingRule

List all alert processing rules configured in subscription.

Example 2

Get-AzAlertProcessingRule -ResourceGroupName "test-rg"

List all alert processing rules configured in resource group test-rg.

Example 3

Get-AzAlertProcessingRule -ResourceGroupName "test-rg" -Name "Test-AlertProcessing-Rule" | Format-List

Get the alert processing rule with name Test-AlertProcessing-Rule in test-rg resource group.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of alert processing rule.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Resource Group Name in which alert processing rule resides.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Get Alert Processing rule by resource id.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSAlertProcessingRule