Home

Recovery Services Vault- Backup Alerts- Configure Notifications with PowerShell?

%3CLINGO-SUB%20id%3D%22lingo-sub-1208466%22%20slang%3D%22en-US%22%3ERecovery%20Services%20Vault-%20Backup%20Alerts-%20Configure%20Notifications%20with%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1208466%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EUsing%20Recovery%20Services%20Vaults%20to%20backup%20VMs%20in%20Azure%2C%20we%20can%20configure%20Backup%20Alert%20notifications%20using%20the%20portal-%20is%20there%20a%20way%20of%20doing%20this%20in%20PowerShell%20(or%20via%20API%2F%20CLI...)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUse%20case-%20we%20want%20to%20turn%20on%20email%20notifications%20on%20all%20our%20vaults%2C%20or%20update%2Fadd%20an%20email%20address.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%222020-03-04_09-42-12.png%22%20style%3D%22width%3A%20600px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175003iDB41285A0B5D9D46%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%222020-03-04_09-42-12.png%22%20alt%3D%22Configure%20Notifications%20in%20the%20Portal%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EConfigure%20Notifications%20in%20the%20Portal%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1208466%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProtection%20%26amp%3B%20Recovery%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1213218%22%20slang%3D%22en-US%22%3ERe%3A%20Recovery%20Services%20Vault-%20Backup%20Alerts-%20Configure%20Notifications%20with%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1213218%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9929%22%20target%3D%22_blank%22%3E%40Chris%20Bradshaw%3C%2FA%3Ethis%20is%20not%20possible.%20Everyone%20needs%20it%20so%20i'm%20not%20sure%20why%20they%20haven't%20implemented%20this...%20probably%20not%20the%20thing%20you%20want%2C%20but%20have%20a%20look%20at%20the%20backup%20explorer%3A%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Fbackup-explorer-now-available-in-preview%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Fbackup-explorer-now-available-in-preview%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ealso%2C%20you%20can%20export%20your%20data%20to%20Log%20Analytics%20and%20configure%20your%20alerts%20over%20there.%20This%20is%20possible%20with%20PowerShell!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-log%23managing-log-alerts-using-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Falerts-log%23managing-log-alerts-using-powershell%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1213233%22%20slang%3D%22en-US%22%3ERe%3A%20Recovery%20Services%20Vault-%20Backup%20Alerts-%20Configure%20Notifications%20with%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1213233%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20having%20a%20look%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F530025%22%20target%3D%22_blank%22%3E%40Jente_V%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20using%20Backup%20Explorer%20for%20other%20things%2C%20but%20unless%20I'm%20missing%20something%20you%20can't%20even%20see%20the%20notifications%20in%20that%20tool.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELog%20Analytics%20is%20an%20option%2C%20but%20I%20was%20hoping%20to%20leverage%20the%20notification%20tool%20that's%20built%20into%20the%20Recovery%20Service%20Vault%20for%20simplicity.%20It's%20a%20shame%20if%20that's%20just%20not%20supported%20(yet%3F)%20in%20PowerShell.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1213243%22%20slang%3D%22en-US%22%3ERe%3A%20Recovery%20Services%20Vault-%20Backup%20Alerts-%20Configure%20Notifications%20with%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1213243%22%20slang%3D%22en-US%22%3E%3CP%3EIt's%20a%20shame%20if%20that's%20just%20not%20supported%20(yet%3F)%20in%20PowerShell%20%26lt%3B%20I've%20been%20waiting%20for%20this%20for%20over%202%20years%20so%20I%20don't%20think%20this%20is%20coming%20..%20(weird).%20Maybe%20a%20UserVoice%20will%20speed%20things%20up%20(%3CA%20href%3D%22https%3A%2F%2Ffeedback.azure.com%2Fforums%2F258995-azure-backup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ffeedback.azure.com%2Fforums%2F258995-azure-backup%3C%2FA%3E).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20have%20a%20look%20at%20this%3A%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fnl-nl%2Fblog%2Fannouncing-preview-of-backup-reports%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fnl-nl%2Fblog%2Fannouncing-preview-of-backup-reports%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1213601%22%20slang%3D%22en-US%22%3ERe%3A%20Recovery%20Services%20Vault-%20Backup%20Alerts-%20Configure%20Notifications%20with%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1213601%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F530025%22%20target%3D%22_blank%22%3E%40Jente_V%3C%2FA%3E%26nbsp%3B%20UserVoice%20submitted%2C%20fingers%20crossed.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ffeedback.azure.com%2Fforums%2F258995-azure-backup%2Fsuggestions%2F39877798-configure-notifications-for-backup-alerts-in-recov%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ffeedback.azure.com%2Fforums%2F258995-azure-backup%2Fsuggestions%2F39877798-configure-notifications-for-backup-alerts-in-recov%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1214380%22%20slang%3D%22en-US%22%3ERe%3A%20Recovery%20Services%20Vault-%20Backup%20Alerts-%20Configure%20Notifications%20with%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1214380%22%20slang%3D%22en-US%22%3EYou%20got%20my%20vote%20%3B)%2C%20thx!%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

Using Recovery Services Vaults to backup VMs in Azure, we can configure Backup Alert notifications using the portal- is there a way of doing this in PowerShell (or via API/ CLI...)?

 

Use case- we want to turn on email notifications on all our vaults, or update/add an email address.

Configure Notifications in the PortalConfigure Notifications in the Portal

 

5 Replies
Highlighted

@Chris Bradshawthis is not possible. Everyone needs it so i'm not sure why they haven't implemented this... probably not the thing you want, but have a look at the backup explorer: https://azure.microsoft.com/en-us/blog/backup-explorer-now-available-in-preview/

 

also, you can export your data to Log Analytics and configure your alerts over there. This is possible with PowerShell!

 

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-log#managing-log-alerts-using-p...

Highlighted

Thanks for having a look @Jente_V 

I've been using Backup Explorer for other things, but unless I'm missing something you can't even see the notifications in that tool.

 

Log Analytics is an option, but I was hoping to leverage the notification tool that's built into the Recovery Service Vault for simplicity. It's a shame if that's just not supported (yet?) in PowerShell.

Highlighted

It's a shame if that's just not supported (yet?) in PowerShell < I've been waiting for this for over 2 years so I don't think this is coming .. (weird). Maybe a UserVoice will speed things up (https://feedback.azure.com/forums/258995-azure-backup).

 

Also, have a look at this: https://azure.microsoft.com/nl-nl/blog/announcing-preview-of-backup-reports/

Highlighted