New-AzureRmAutoscaleNotification

Creates an Autoscale email notification.

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.

Optional Parameters

-CustomEmail

Specifies a comma-separated list of email addresses.

Type:System.String[]
Aliases:CustomEmails
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SendEmailToSubscriptionAdministrator

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

Type:System.Management.Automation.SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SendEmailToSubscriptionCoAdministrator

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

Type:System.Management.Automation.SwitchParameter
Aliases:SendEmailToSubscriptionCoAdministrators
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Webhook

Specifies a comma-separated list of Autoscale webhooks.

Type:Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[]
Aliases:Webhooks
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification