New-AzAutoscaleNotification

Creates an Autoscale email notification.

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

-CustomEmail

Specifies a comma-separated list of email addresses.

Type:String[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SendEmailToSubscriptionAdministrator

Indicates that this operation sends an email notification to the subscription administrator.

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

-SendEmailToSubscriptionCoAdministrator

Indicates that this operation sends an email notification to the subscription co-administrators.

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

-Webhook

Specifies a comma-separated list of Autoscale webhooks.

Type:WebhookNotification[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

WebhookNotification[]

String[]

SwitchParameter

Outputs

AutoscaleNotification