< Back

Set-AzureRmRecoveryServicesAsrAlertSetting

Tue Jan 29, 2019 10:03 pm

NAME Set-AzureRmRecoveryServicesAsrAlertSetting



SYNOPSIS

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





SYNTAX

Set-AzureRmRecoveryServicesAsrAlertSetting [-Confirm] [-CustomEmailAddress <String[]>] [-DefaultProfile <IAzureContextContainer>] [-LocaleID

<String>] [-WhatIf] [<CommonParameters>]



Set-AzureRmRecoveryServicesAsrAlertSetting [-Confirm] [-CustomEmailAddress <String[]>] [-DefaultProfile <IAzureContextContainer>]

-EnableEmailSubscriptionOwner [-LocaleID <String>] [-WhatIf] [<CommonParameters>]



Set-AzureRmRecoveryServicesAsrAlertSetting [-Confirm] [-CustomEmailAddress <String[]>] [-DefaultProfile <IAzureContextContainer>]

-DisableEmailToSubscriptionOwner [-LocaleID <String>] [-WhatIf] [<CommonParameters>]



Set-AzureRmRecoveryServicesAsrAlertSetting [-Confirm] [-DefaultProfile <IAzureContextContainer>] -DisableNotification [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The Set-AzureRmRecoveryServicesAsrNotificationSetting cmdlet configures Azure Site Recovery notification settings (email notification) for the

vault.





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-CustomEmailAddress <String[]>

Alert / Notification sent to emails.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DisableEmailToSubscriptionOwner [<SwitchParameter>]

Switch parameter specifies enable notification to subscription owner.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DisableNotification [<SwitchParameter>]

Flag to disable all notification.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-EnableEmailSubscriptionOwner [<SwitchParameter>]

Switch paramter specifies enable notification to subscription owner.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-LocaleID <String>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAlertSetting,

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=0.1.1.0, Culture=neutral, PublicKeyToken=null]]







NOTES









Example 1



PS C:\\> Set-AzureRmRecoveryServicesAsrAlertSetting -DisableNotification



CustomEmailAddress EmailSubscriptionOwner Locale

------------------ ---------------------- ------

{} Off en-US



Disable notification.





Example 2



PS C:\\> Set-AzureRmRecoveryServicesAsrAlertSetting -CustomEmailAddress "abcxxxx@xxxx.com" -EmailSubscriptionOwner



CustomEmailAddress EmailSubscriptionOwner Locale

------------------ ---------------------- ------

{abcxxxx@xxxx.com} On en-US



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







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ertsetting