Bewerken

Delen via


Set-AzRecoveryServicesAsrAlertSetting

Configure Azure Site Recovery notification settings (email notification) for the vault.

Syntax

Set-AzRecoveryServicesAsrAlertSetting
   [-CustomEmailAddress <String[]>]
   [-LocaleID <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzRecoveryServicesAsrAlertSetting
   [-EnableEmailSubscriptionOwner]
   [-CustomEmailAddress <String[]>]
   [-LocaleID <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzRecoveryServicesAsrAlertSetting
   [-DisableEmailToSubscriptionOwner]
   [-CustomEmailAddress <String[]>]
   [-LocaleID <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzRecoveryServicesAsrAlertSetting
   [-DisableNotification]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-AzRecoveryServicesAsrNotificationSetting cmdlet configures Azure Site Recovery notification settings (email notification) for the vault.

Examples

Example 1

Set-AzRecoveryServicesAsrAlertSetting -DisableNotification

CustomEmailAddress EmailSubscriptionOwner Locale
------------------ ---------------------- ------
{}                 Off                    en-US

Disable notification.

Example 2

Set-AzRecoveryServicesAsrAlertSetting -CustomEmailAddress "abcxxxx@xxxx.com" -EnableEmailSubscriptionOwner

CustomEmailAddress     EmailSubscriptionOwner Locale
------------------     ---------------------- ------
{abcxxxx@xxxx.com} On                     en-US

Set notification for custom email address(s) and for subscription owner.

Example 3

Configure Azure Site Recovery notification settings (email notification) for the vault. (autogenerated)

Set-AzRecoveryServicesAsrAlertSetting -CustomEmailAddress 'abcxxxx@xxxx.com' -DisableEmailToSubscriptionOwner

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-CustomEmailAddress

Alert / Notification sent to emails.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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

-DisableEmailToSubscriptionOwner

Switch parameter specifies enable notification to subscription owner.

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

-DisableNotification

Flag to disable all notification.

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

-EnableEmailSubscriptionOwner

Switch parameter specifies enable notification to subscription owner.

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

-LocaleID

Email language of alert /notification to user(supported culture codes from microsoft).

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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

Inputs

None

Outputs

ASRAlertSetting