< Back

New-AzureRmActionGroup

Tue Jan 29, 2019 9:48 pm

NAME New-AzureRmActionGroup



SYNOPSIS

Creates an ActionGroup reference object in memory.





SYNTAX

New-AzureRmActionGroup -ActionGroupId <String> [-DefaultProfile <IAzureContextContainer>] [-WebhookProperty

<System.Collections.Generic.Dictionary`2[System.String,System.String]>] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-ActionGroupId <String>

The Id/name of the action group.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-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



-WebhookProperty <System.Collections.Generic.Dictionary`2[System.String,System.String]>

The webhook properties of the action group



Required? false

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.Management.Monitor.Management.Models.ActivityLogAlertActionGroup







NOTES









Example 1: Create an action group reference object in memory



PS C:\\>$dict = New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]"

PS C:\\>$dict.Add('key1', 'value1')

PS C:\\>$actionGrp1 = New-AzureRmActionGroup -ActionGroupId 'actiongr1' -WebhookProperties $dict











RELATED LINKS

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

Set-AzureRmActivityLogAlert

Enable-AzureRmActivityLogAlert

Disable-AzureRmActivityLogAlert

Get-AzureRmActivityLogAlert

Remove-AzureRmActivityLogAlert

New-AzureRmActivityLogAlertCondition