Modifier

Partager via


New-AzActionGroupArmRoleReceiverObject

Create an in-memory object for ArmRoleReceiver.

Syntax

New-AzActionGroupArmRoleReceiverObject
   -Name <String>
   -RoleId <String>
   [-UseCommonAlertSchema <Boolean>]
   [<CommonParameters>]

Description

Create an in-memory object for ArmRoleReceiver.

Examples

Example 1: create action group arm role receiver

New-AzActionGroupArmRoleReceiverObject -Name "sample arm role" -RoleId "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" -UseCommonAlertSchema $true

Name            RoleId                               UseCommonAlertSchema
----            ------                               --------------------
sample arm role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635                 True

This command creates action group arm role receiver object.

Parameters

-Name

The name of the arm role receiver. Names must be unique across all receivers within an action group.

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

-RoleId

The arm role id.

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

-UseCommonAlertSchema

Indicates whether to use common alert schema.

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

Outputs

ArmRoleReceiver