Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
New-AzAutoscaleNotificationObject
- Module:
- Az.Monitor Module
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
-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
-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
-Webhook
the collection of webhook notifications.
Parameter properties
| Type: | |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
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
Azure PowerShell
Feedback
Was this page helpful?
