Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AlertRule

Remove-AlertRule

microsoft.azure.commands.insights.dll

Synopsis

Removes an alert rule.

Syntax

Remove-AlertRule [-ResourceGroup] [-Name] [-Profile] [<CommonParameters>]

Detailed Description

Removes and alert rule identified by name and resource group name.

Parameters

-ResourceGroup <String>

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

-Name <String>

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

-Profile <AzureProfile>

In-memory profile (AzureProfile).

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1: removing an alert rule --------------------------

Removes the alert rule identified by name and resource group name.

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

remove-alertrule -res Default-Web-CentralUS -n myalert-7da64548-214d-42ca-b12b-b245bb8f0ac8

Add-AlertRule
Get-AlertRule
Get-AlertHistory
Online Version