Get-​Alert​Rule

{{Fill in the Synopsis}}

Syntax

Get-AlertRule
   [-DetailedOutput]
   -Name <String>
   -ResourceGroup <String>
   [<CommonParameters>]
Get-AlertRule
   [-DetailedOutput]
   -ResourceGroup <String>
   -TargetResourceId <String>
   [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-Name

The alert rule name

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroup

The resource group name

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TargetResourceId

The alert rule target resource id

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-DetailedOutput

Return object with all the details of the records (the default is to return only some attributes, i.e. no detail)

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

System.String

Outputs

System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSManagementItemDescriptor, Microsoft.Azure.Commands.Insights, Version=1.0.4.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]