Monitoring Azure Backup workloads

Azure Backup provides multiple backup solutions based on the backup requirement and infrastructure topology (On-premises vs Azure). Any backup user or admin should see what's going on across all solutions and can expect to be notified in important scenarios. This article details the monitoring and notification capabilities provided by Azure Backup service.

Note

The functionality described in the following sections can also be accessed via Backup center. Backup center is a single unified management experience in Azure. It enables enterprises to govern, monitor, operate, and analyze backups at scale. With this solution, you can perform most of the key backup management operations without being limited to the scope of an individual vault.

Backup Items in Recovery Services vault

You can monitor all your backup items via a Recovery Services vault. Navigating to the Backup Items section in the vault opens up a view that provides the number of backup items of each workload type associated with the vault. Clicking on any row opens up a detailed view listing all backup items of the given workload type, with information on the last backup status for each item, latest restore point available, and so on.

RS vault backup items

Note

For items backed up to Azure using DPM, the list will show all the data sources protected (both disk and online) using the DPM server. If the protection is stopped for the datasource with backup data retained, the datasource will be still listed in the portal. You can go to the details of the data source to see if the recovery points are present in disk, online or both. Also, datasources for which the online protection is stopped but data is retained, billing for the online recovery points continue until the data is completely deleted.

The DPM version must be DPM 1807 (5.1.378.0) or DPM 2019 ( version 10.19.58.0 or above), for the backup items to be visible in the Recovery Services vault portal.

Backup Jobs in Recovery Services vault

Azure Backup provides in-built monitoring and alerting capabilities for workloads being protected by Azure Backup. In the Recovery Services vault settings, the Monitoring section provides in-built jobs and alerts.

RS vault inbuilt monitoring

Jobs are generated when operations such as configuring backup, back up, restore, delete backup, and so on, are performed.

Jobs from the following Azure Backup solutions are shown here:

  • Azure VM backup
  • Azure File backup
  • Azure workload back up such as SQL and SAP HANA
  • Microsoft Azure Recovery Services (MARS) agent

Jobs from System Center Data Protection Manager (SC-DPM), Microsoft Azure Backup Server (MABS) aren't displayed.

Note

Azure workloads such as SQL and SAP HANA backups within Azure VMs have huge number of backup jobs. For example, log backups can run for every 15 minutes. So for such DB workloads, only user triggered operations are displayed. Scheduled backup operations aren't displayed.

Backup Alerts in Recovery Services vault

Note

Viewing alerts across vaults is currently not supported in Backup Center. You need to navigate to an individual vault to view alerts for that vault.

Alerts are primarily scenarios where users are notified so that they can take relevant action. The Backup Alerts section shows alerts generated by Azure Backup service. These alerts are defined by the service and user can't custom create any alerts.

Alert scenarios

The following scenarios are defined by service as alertable scenarios.

  • Backup/Restore failures
  • Backup succeeded with warnings for Microsoft Azure Recovery Services (MARS) agent
  • Stop protection with retain data/Stop protection with delete data

Alerts from the following Azure Backup solutions are shown here

  • Azure VM backups
  • Azure File backups
  • Azure workload backups such as SQL, SAP HANA
  • Microsoft Azure Recovery Services (MARS) agent

Note

Alerts from System Center Data Protection Manager (SC-DPM), Microsoft Azure Backup Server (MABS) aren't displayed here.

Consolidated Alerts

For Azure workload backup solutions such as SQL and SAP HANA, log backups can be generated very frequently (up to every 15 minutes according to the policy). So it's also possible that the log backup failures are also very frequent (up to every 15 minutes). In this scenario, the end user will be overwhelmed if an alert is raised for each failure occurrence. So an alert is sent for the first occurrence and if the later failures are because of the same root cause, then further alerts aren't generated. The first alert is updated with the failure count. But if the alert is inactivated by the user, the next occurrence will trigger another alert and this will be treated as the first alert for that occurrence. This is how Azure Backup performs alert consolidation for SQL and SAP HANA backups.

Exceptions when an alert is not raised

There are few exceptions when an alert isn't raised on a failure. They are:

  • User explicitly canceled the running job
  • The job fails because another backup job is in progress (nothing to act on here since we just have to wait for the previous job to finish)
  • The VM backup job fails because the backed-up Azure VM no longer exists
  • Consolidated Alerts

The exceptions above are designed from the understanding that the result of these operations (primarily user triggered) shows up immediately on portal/PS/CLI clients. So the user is immediately aware and doesn't need a notification.

Alert types

Based on alert severity, alerts can be defined in three types:

  • Critical: In principle, any backup or recovery failure (scheduled or user triggered) would lead to generation of an alert and would be shown as a Critical alert and also destructive operations such as delete backup.
  • Warning: If the backup operation succeeds but with few warnings, they're listed as Warning alerts. Warning alerts are currently available only for Azure Backup Agent backups.
  • Informational: Currently, no informational alert is generated by Azure Backup service.

Notification for Backup Alerts

Note

Configuration of notification can be done only through the Azure portal. PS/CLI/REST API/Azure Resource Manager Template support isn't supported.

Once an alert is raised, users are notified. Azure Backup provides an inbuilt notification mechanism via e-mail. One can specify individual email addresses or distribution lists to be notified when an alert is generated. You can also choose whether to get notified for each individual alert or to group them in an hourly digest and then get notified.

RS Vault inbuilt email notification

When notification is configured, you'll receive a welcome or introductory email. This confirms that Azure Backup can send emails to these addresses when an alert is raised.

If the frequency was set to an hourly digest and an alert was raised and resolved within an hour, it won't be a part of the upcoming hourly digest.

Note

  • If a destructive operation such as stop protection with delete data is performed, an alert is raised and an email is sent to subscription owners, admins, and co-admins even if notifications aren't configured for the Recovery Services vault.
  • To configure notification for successful jobs use Log Analytics.

Inactivating alerts

To inactivate/resolve an active alert, you can select the list item corresponding to the alert you wish to inactivate. This opens up a screen that displays detailed information about the alert, with an Inactivate button on the top. Selecting this button will change the status of the alert to Inactive. You may also inactivate an alert by right-clicking on the list item corresponding to that alert and selecting Inactivate.

RS Vault alert inactivation

Azure Monitor alerts for Azure Backup (preview)

Azure Backup also provides alerts via Azure Monitor, to enable users to have a consistent experience for alert management across different Azure services, including backup. With Azure Monitor alerts, you can route alerts to any notification channel supported by Azure Monitor such as email, ITSM, Webhook, Logic App and so on.

Currently, Azure Backup has made two main types of built-in alerts available:

  • Security Alerts: For scenarios, such as deletion of backup data, or disabling of soft-delete functionality for a vault, security alerts (of severity Sev 0) are fired, and displayed in the Azure portal or consumed via other clients (PowerShell, CLI and REST API). Security alerts are generated by default and can't be turned off. However, you can control the scenarios for which the notifications (for example, emails) should be fired. For more information on how to configure notifications, see Action rules.
  • Job Failure Alerts: For scenarios, such as backup failure and restore failure, Azure Backup provides built-in alerts via Azure Monitor (of Severity Sev 1). Unlike security alerts, you can choose to turn off Azure Monitor alerts for job failure scenarios. For example, if you have already configured custom alert rules for job failures via Log Analytics, and don't need built-in alerts to be fired for every job failure. By default, alerts for job failures are turned off. Refer to the section on turning on alerts for these scenarios for more details.

The following table summarizes the different backup alerts currently available (in preview) via Azure Monitor and the supported workload/vault types:

Alert Category Alert Name Supported workload types / vault types Description
Security Delete Backup Data
  • Azure Virtual Machine

  • SQL in Azure VM (non-AG scenarios)

  • SAP HANA in Azure VM

  • Azure Backup Agent

  • DPM

  • Azure Backup Server

  • Azure Database for PostgreSQL Server

  • Azure Blobs

  • Azure Managed Disks
  • This alert is fired when a user stops backup and deletes backup data (Note – If soft-delete feature is disabled for the vault, Delete Backup Data alert is not received)
    Security Upcoming Purge
  • Azure Virtual Machine

  • SQL in Azure VM (non-AG scenarios)

  • SAP HANA in Azure VM
  • For all workloads which support soft-delete, this alert is fired when the backup data for an item is 2 days away from being permanently purged by the Azure Backup service
    Security Purge Complete
  • Azure Virtual Machine

  • SQL in Azure VM (non-AG scenarios)

  • SAP HANA in Azure VM
  • Delete Backup Data
    Security Soft Delete Disabled for Vault Recovery Services vaults This alert is fired when the soft-deleted backup data for an item has been permanently deleted by the Azure Backup service
    Jobs Backup Failure
  • Azure Virtual Machine

  • SQL in Azure VM (non-AG scenarios)

  • SAP HANA in Azure VM

  • Azure Backup Agent

  • Azure Files

  • Azure Database for PostgreSQL Server

  • Azure Managed Disks
  • This alert is fired when a backup job failure has occurred. By default, alerts for backup failures are turned off. Refer to the section on turning on alerts for this scenario for more details.
    Jobs Restore Failure
  • Azure Virtual Machine

  • SQL in Azure VM (non-AG scenarios)

  • SAP HANA in Azure VM

  • Azure Backup Agent

  • Azure Files

  • Azure Database for PostgreSQL Server

  • Azure Blobs

  • Azure Managed Disks
  • This alert is fired when a restore job failure has occurred. By default, alerts for restore failures are turned off. Refer to the section on turning on alerts for this scenario for more details.

    Turning on Azure Monitor alerts for job failure scenarios

    To opt-in to Azure Monitor alerts for backup failure and restore failure scenarios, follow the below steps:

    1. Navigate to the Azure portal and search for Preview Features.

      Preview Features

    2. You can view the list of all preview features that are available for you to opt-in to.

      • If you wish to receive job failure alerts for workloads backed up to Recovery Services vaults, select the flag named EnableAzureBackupJobFailureAlertsToAzureMonitor corresponding to Microsoft.RecoveryServices provider (column 3).
      • If you wish to receive job failure alerts for workloads backed up to Backup vaults, select the flag named EnableAzureBackupJobFailureAlertsToAzureMonitor corresponding to Microsoft.DataProtection provider (column 3).

      Alerts Preview

    3. Click Register to enable this feature for your subscription.

      Note

      It may take up to 30 minutes for the registration to take effect. If you wish to enable this feature for multiple subscriptions, repeat the above process by selecting the relevant subscription at the top of the screen.

    Viewing fired alerts in the Azure portal

    Once an alert is fired for a vault, you can view the alert in the Azure portal by navigating to the vault and clicking on the Alerts menu item. Clicking this shows a distribution of alerts by severity for this vault.

    Viewing Alerts

    Clicking on any of the numbers opens up a list of all alerts fired with the given severity. You can click any of the alerts to get more details about the alert, such as the affected datasource, alert description and recommended action, and so on.

    Alert Details

    You can change the state of an alert to Acknowledged or Closed by clicking on Change Alert State.

    Change Alert State

    For more information about Azure Monitor alerts, see Overview of alerts in Azure.

    Configuring notifications for alerts

    To configure notifications for Azure Monitor alerts, you must create an action rule. The following steps demonstrate how to create an action rule to send email notifications to a given email address. Similar instructions will apply for routing these alerts to other notification channels, such as ITSM, webhook, logic app and so on.

    1. Navigate to Azure Monitor in the Azure portal. Click the Alerts menu item and select Manage actions.

      Manage Actions

    2. Navigate to the Action rules (preview) tab and click New action rule.

      New Action Rule

    3. Select the scope for which the action rule should be applied. You can apply the action rule for all resources within a subscription. Optionally, you can also apply filters on the alerts, for example, to only generate notifications for alerts of a certain severity.

      Action Rule Scope

    4. Create an action group. An action group is the destination to which the notification for an alert should be sent, for example, an email address.

      Create Action Group

    5. On the Basics tab, select the name of the action group and the subscription and resource group under which it should be created.

      Action Groups Basic

    6. On the Notifications tab, select Email/SMS message/Push/Voice and enter the recipient email id.

      Action Groups Notification

    7. Click Review+Create and then Create to deploy the action group.

    8. Finally, save the action rule.

    Learn more about Action Rules in Azure Monitor

    Next steps

    Monitor Azure Backup workloads using Azure Monitor