Azure Backup Email Notification

I was looking for a free solution to have email notifications for Azure backup. After reading other blogs and technet site I end up to use PowerShell Send-MailMessage attached to the Azure Backup Logs. In short, when the Azure Backup log is created, the script lists the last 2 days events, creates an html file and mails the report with the html as attachment to you.

First find the Azure backup Event Log, it under “Applications and Services Logs, CloudBackup, Operational” and select to attach a task to the log. This will trigger the task on every event created under this log. On the other hand you can attach the task to a specific event.

Create a Task and attach the below PowerShell script. Here you will find the powershell.exe “C:WindowsSystem32WindowsPowerShellv1.0”

Crate a folder c:\IT and Copy the below script on a text file and name it “eventemail.ps1”. Finally change the required fields.

 

The “write-host ” lines can be removed. They are useful only for troubleshooting by running the script manually on powershell.

Share