AZure VM backup failure report notification email through Powershell

Azure-learning 56 Reputation points
2022-06-30T07:33:08.7+00:00

Please suggest how to create a AZure VM backup failure notification email using Powershell.
I have script to enable the recovery service vault and take backup . I need to add the failure notification also
Recovery service vault is taking the backup .

Not sure if Notification is supported by Powershell for azure vm backup.

Please suggest the alternative and if possible it would be helpful to provide some reference link or code

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,170 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,444 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,491 Reputation points
    2022-07-03T09:23:21.687+00:00

    Hello,

    Based Upon the information provided.

    Azure Backup generates alerts for all backup events, such as unsuccessful backups. A new option is to create backup alert notifications so Azure Backup will alert you firing an email when an alert is generated.

    To enable the backup alert notifications, navigate to the “Backup Alerts” section of the “recovery Services vault” and click the “Configure notifications”
    There switch the Email notification to On to enable the alerts. Enter one or more recipients separated with semicolon (;). Choose Per Alert or Hourly Digest. Per Alert will fire an email for every alert instantly and the Hourly Digest means that the notification agent will check for alerts every hour and will fire an email with the active alerts.

    Finally choose the Severity of the alerts which you will be notified and press save.

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

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Tristano,G,Giuseppe,JBP12 R 21 Reputation points
    2024-06-20T10:12:46.81+00:00

    Hello there,

    is there a way to simulate a backup failure? I'd like to get an email notification.

    Thank you in advance for your reply.

    beppe

    0 comments No comments