Edit

Share via


New-AzAutoscaleNotificationObject

Create an in-memory object for AutoscaleNotification.

Syntax

Default (Default)

New-AzAutoscaleNotificationObject
    [-EmailCustomEmail <String[]>]
    [-EmailSendToSubscriptionAdministrator <Boolean>]
    [-EmailSendToSubscriptionCoAdministrator <Boolean>]
    [-Webhook <IWebhookNotification[]>]
    [<CommonParameters>]

Description

Create an in-memory object for AutoscaleNotification.

Examples

Example 1: Create web hook notification object

$webhook1=New-AzAutoscaleWebhookNotificationObject -Property @{} -ServiceUri "http://myservice.com"
New-AzAutoscaleNotificationObject -EmailCustomEmail "gu@ms.com" -EmailSendToSubscriptionAdministrator $true -EmailSendToSubscriptionCoAdministrator $true -Webhook $webhook1

Create web hook notification object

Parameters

-EmailCustomEmail

the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.

Parameter properties

Type:

String[]

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

-EmailSendToSubscriptionAdministrator

a value indicating whether to send email to subscription administrator.

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

-EmailSendToSubscriptionCoAdministrator

a value indicating whether to send email to subscription co-administrators.

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

-Webhook

the collection of webhook notifications. To construct, see NOTES section for WEBHOOK properties and create a hash table.

Parameter properties

Type:

IWebhookNotification[]

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

AutoscaleNotification