< Back

Remove-AzureRmAlertRule

Tue Jan 29, 2019 9:49 pm

NAME Remove-AzureRmAlertRule



SYNOPSIS

Removes an alert rule.





SYNTAX

Remove-AzureRmAlertRule [-DefaultProfile <IAzureContextContainer>] -Name <String> -ResourceGroupName <String> [<CommonParameters>]





DESCRIPTION

The Remove-AzureRmAlertRule cmdlet removes an alert rule. You must specify the name of the alert rule and the resource group to which it is

assigned.



This cmdlet implements the ShouldProcess pattern, i.e. it might request confirmation from the user before actually creating, modifying, or

removing the resource.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the alert rule to remove.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group for the alert rule.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.AzureOperationResponse







NOTES









Example 1: Remove an alert rule



PS C:\\>Remove-AzureRmAlertRule -ResourceGroup "Default-Web-CentralUS" -Name "myalert-7da64548-214d-42ca-b12b-b245bb8f0ac8"

RequestId StatusCode

--------- ----------

2c6c159b-0e73-4a01-a67b-c32c1a0008a3 OK



This command removes the alert rule named myalert-7da64548-214d-42ca-b12b-b245bb8f0ac8 in the resource group Default-Web-CentralUS.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... malertrule

Add-AzureRmMetricAlertRule

Add-AzureRmWebtestAlertRule

Get-AzureRmAlertHistory

Get-AzureRmAlertRule