編輯

共用方式為


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