New-AzActionGroup

Creates an ActionGroup reference object in memory.

Note

This is the previous version of our documentation. Please consult the most recent version for up-to-date information.

Syntax

New-AzActionGroup
   -ActionGroupId <String>
   [-WebhookProperty <System.Collections.Generic.Dictionary`2[System.String,System.String]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzActionGroup cmdlet creates an action group reference object in memory.

Examples

Example 1: Create an action group reference object in memory

$dict = New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]"
$dict.Add('key1', 'value1')
$actionGrp1 = New-AzActionGroup -ActionGroupId 'actiongr1' -WebhookProperty $dict

Parameters

-ActionGroupId

The Id/name of the action group.

Type:String
Position:Named
Default value:None
Accept pipeline input:True
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
Accept pipeline input:False
Accept wildcard characters:False

-WebhookProperty

The webhook properties of the action group

Type:Dictionary<TKey,TValue>[System.String,System.String]
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Dictionary<TKey,TValue>[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]

Outputs

ActivityLogAlertActionGroup