New-AzScheduledQueryRuleAznsActionGroup

Creates an object of type Azns Action Group

Syntax

New-AzScheduledQueryRuleAznsActionGroup
   [-ActionGroup <String[]>]
   [-EmailSubject <String>]
   [-CustomWebhookPayload <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Creates an object of type Azns Action Group. This object is to be passed to the command that creates Log Alert Rule.

Examples

Example 1

PS C:\> $aznsActionGroup = New-AzScheduledQueryRuleAznsActionGroup -ActionGroup @("/subscriptions/ad825170-845c-47db-8f00-11978947b089/resourcegroups/MyResourceGroup/providers/microsoft.insights/actiongroups/MyActionGroup") -EmailSubject "Email subject" -CustomWebhookPayload "{}"

Parameters

-ActionGroup

The list of action groups to send notification to

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CustomWebhookPayload

The customized webhook payload

Type:String
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

-EmailSubject

The email subject of alert notification

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

Inputs

None

Outputs

PSScheduledQueryRuleAznsAction