Edit

Share via


New-AzAutoscaleNotification

Creates an Autoscale email notification.

Syntax

Default (Default)

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.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

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

-SendEmailToSubscriptionAdministrator

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

Parameter properties

Type:SwitchParameter
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:True
Value from remaining arguments:False

-SendEmailToSubscriptionCoAdministrator

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

Parameter properties

Type:SwitchParameter
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:True
Value from remaining arguments:False

-Webhook

Specifies a comma-separated list of Autoscale webhooks.

Parameter properties

Type:

WebhookNotification[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
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.

Inputs

WebhookNotification

String

SwitchParameter

Outputs

AutoscaleNotification