Upravit

Sdílet prostřednictvím


Remove-AzAlertProcessingRule

Deletes an alert processing rule

Syntax

Remove-AzAlertProcessingRule
      -ResourceGroupName <String>
      -Name <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-PassThru]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzAlertProcessingRule
      -ResourceId <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-PassThru]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzAlertProcessingRule
      -InputObject <PSAlertProcessingRule>
      [-DefaultProfile <IAzureContextContainer>]
      [-PassThru]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Remove-AzAlertProcessingRule cmdlet deletes an alert processing rule.

Examples

Example 1

Remove-AzAlertProcessingRule -ResourceGroupName "test-rg" -Name "AlertProcessingRuleName"

This cmdlet deletes the alert processing rule with name AlertProcessingRuleName in resource group test-rg

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-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

-InputObject

The alert processing rule resource

Type:PSAlertProcessingRule
Position:Named
Default value:None
Required:True
Accept pipeline input:True
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

-PassThru

PassThru returns True if the remove alertProcessing rule succeeded. By default, this cmdlet does not generate any output.

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

-ResourceGroupName

Resource Group name

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSAlertProcessingRule

Outputs

Boolean