Edit

Share via


New-AzActionGroupEmailReceiverObject

Create an in-memory object for EmailReceiver.

Syntax

Default (Default)

New-AzActionGroupEmailReceiverObject
    -EmailAddress <String>
    -Name <String>
    [-UseCommonAlertSchema <Boolean>]
    [<CommonParameters>]

Description

Create an in-memory object for EmailReceiver.

Examples

Example 1: create action group email receiver

New-AzActionGroupEmailReceiverObject -EmailAddress user@example.com -Name user1
EmailAddress     Name  Status UseCommonAlertSchema
------------     ----  ------ --------------------
user@example.com user1

This command creates action group email receiver object.

Parameters

-EmailAddress

The email address of this receiver.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UseCommonAlertSchema

Indicates whether to use common alert schema.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

EmailReceiver