Skip to content

Latest commit

 

History

History
139 lines (101 loc) · 3.56 KB

New-AzAutoscaleNotification.md

File metadata and controls

139 lines (101 loc) · 3.56 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll-Help.xml
Az.Monitor
B5B5F494-D912-40D0-99E2-A62FAACA3EC9
2.0.0

New-AzAutoscaleNotification

SYNOPSIS

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: System.String[]
Parameter Sets: (All)
Aliases:

Required: False
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.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential

Required: False
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
Parameter Sets: (All)
Aliases:

Required: False
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
Parameter Sets: (All)
Aliases:

Required: False
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[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[]

System.String[]

System.Management.Automation.SwitchParameter

OUTPUTS

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

NOTES

RELATED LINKS

New-AzAutoscaleWebhook