New-AzureRmAutoscaleNotification

Creates an Autoscale email notification.

Warning

The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.

Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.

Syntax

New-AzureRmAutoscaleNotification
   [[-Webhook] <WebhookNotification[]>]
   [[-CustomEmail] <String[]>]
   [-SendEmailToSubscriptionAdministrator]
   [-SendEmailToSubscriptionCoAdministrator]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzureRmAutoscaleNotification cmdlet creates an email notification for Autoscale.

Examples

Example 1: Create an Autoscale email notification

PS C:\>New-AzureRmAutoscaleNotification -CustomEmails "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-AzureRmAutoscaleNotification -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: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