Set-AzRecoveryServicesAsrAlertSetting
Configure Azure Site Recovery notification settings (email notification) for the vault.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
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
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Alert / Notification sent to emails.
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Switch parameter specifies enable notification to subscription owner.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Flag to disable all notification.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Switch parameter specifies enable notification to subscription owner.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Email language of alert /notification to user(supported culture codes from microsoft).
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None