Remove-AlertRule

Applies To: Azure PowerShell 1.0

Remove-AlertRule

Removes an alert rule.

Syntax

Parameter Set: Parameters for RemoveAlert cmdlet
Remove-AlertRule -Name <String> -ResourceGroup <String> [ <CommonParameters>]

Detailed Description

The Remove-AlertRule cmdlet removes an alert rule that is specified by name its name and resource group name.

Parameters

-Name<String>

Specifies the name of the alert rule to remove.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-ResourceGroup<String>

Specifies the name of the resource group where the alert is included.

Aliases

none

Required?

true

Position?

named

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

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove an alert rule

This command removes the alert rule identified by name and resource group name.

PS C:\> Remove-AlertRule -ResourceGroup "Contoso-Web-CentralUS" -Name "ContosoAlert-7da64548-214d-42ca-b12b-b245bb8f0ac8"

Add-AlertRule

Get-AlertHistory

Get-AlertRule