New-AzAutoscaleNotification
Creates an Autoscale email notification.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzAutoscaleNotification
[[-Webhook] <WebhookNotification[]>]
[[-CustomEmail] <String[]>]
[-SendEmailToSubscriptionAdministrator]
[-SendEmailToSubscriptionCoAdministrator]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzAutoscaleNotification cmdlet creates an email notification for Autoscale.
Examples
Example 1: Create an Autoscale email notification
PS C:\>New-AzAutoscaleNotification -CustomEmail "pattif@contoso.com, davidchew@contoso.net"
This command creates an Autosacale email notification for two specified addresses.
Example 2: Create an Autoscale email notification for the subscription administrator
PS C:\>New-AzAutoscaleNotification -SendEmailToSubscriptionAdministrator
This command creates an Autosacale email notification for the subscription administrator.
Parameters
Specifies a comma-separated list of email addresses.
| Type: | String[] |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Indicates that this operation sends an email notification to the subscription administrator.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Indicates that this operation sends an email notification to the subscription co-administrators.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies a comma-separated list of Autoscale webhooks.
| Type: | WebhookNotification[] |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Inputs
String[]