Set-AzRecoveryServicesAsrAlertSetting
Configure Azure Site Recovery notification settings (email notification) for the vault.
Syntax
Set (Default)
Set-AzRecoveryServicesAsrAlertSetting
[-CustomEmailAddress <String[]>]
[-LocaleID <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
EmailToSubscriptionOwner
Set-AzRecoveryServicesAsrAlertSetting
[-EnableEmailSubscriptionOwner]
[-CustomEmailAddress <String[]>]
[-LocaleID <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
DisableEmailToSubscriptionOwner
Set-AzRecoveryServicesAsrAlertSetting
[-DisableEmailToSubscriptionOwner]
[-CustomEmailAddress <String[]>]
[-LocaleID <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Disable
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.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-CustomEmailAddress
Alert / Notification sent to emails.
Parameter properties
Type: String [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Set
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
EmailToSubscriptionOwner
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
DisableEmailToSubscriptionOwner
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
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
-DisableEmailToSubscriptionOwner
Switch parameter specifies enable notification to subscription owner.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
DisableEmailToSubscriptionOwner
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DisableNotification
Flag to disable all notification.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Disable
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-EnableEmailSubscriptionOwner
Switch parameter specifies enable notification to subscription owner.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
EmailToSubscriptionOwner
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-LocaleID
Email language of alert /notification to user(supported culture codes from microsoft).
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Set
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
EmailToSubscriptionOwner
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
DisableEmailToSubscriptionOwner
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
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 .
None
Outputs