Overview

The article covers the following topics:

  • common use cases where CloudMonix can help with monitoring and automation

  • what happens in the monitoring cycle

  • what is needed to connect to and monitor Azure Backups

  • what metrics can be tracked, visualized and monitored

  • what automated actions can be executed by CloudMonix


Why use CloudMonix for Azure Backups?

Popular usages of CloudMonix include the following examples:

  • Monitoring Uptime and Availability

  • Alerting on failed backup jobs

  • Alerting on unhealthy storage containers

  • Automatically triggering backup operations according to a schedule or custom criteria


Configuration 

CloudMonix will use Azure Monitoring API for monitoring Azure Backups Vault.

CloudMonix supports Azure Backup Vaults monitoring for both Classic and v2/ARM storage accounts. See this article to learn more about differences between monitoring Classic and ARM resources.


Azure Backups Vault monitoring can be configured either via Setup Wizard or by using the “Add New” button in the dashboard. It’s highly recommended to use Setup Wizard when configuring permissions for the first time, as that will simplify authorization. Learn more about authorizing with Setup Wizard here.


When configuring a resource it’s necessary to specify whether it is under Recovery Services namespace (v2). The Microsoft’s recommendation is to move to the new Recovery Services namespace. Since the monitoring data published by Azure is unreliable for other namespaces and might be delayed, it’s also recommended to use Recovery Services namespace for optimal CloudMonix expeience.

Metrics

Every diagnostic data point that CloudMonix retrieves from the monitored resource is considered a metric in CloudMonix. Refer to the Metrics article to learn more about metrics in general.


CloudMonix retrieves metrics for Azure Backups via Azure Management API.


CloudMonix provides a default template for monitoring Azure Backup that contains most useful Metrics and Alerts.

The metrics can be added, removed and customized in the Metrics tab in the resource configuration dialog.


Built-in Metrics 


AzureBackupVaultProtectionStatus

Tracks detailed information about backups.

  • Data Type: array of objects with the following properties

    • Name (string): friendly name of the VM represented by this backup item

    • Type (string): type of workload this item represents, possible values include:  Invalid ,  VM ,  FileFolder ,  AzureSqlDb ,  SQLDB ,  Exchange ,  Sharepoint ,  DPMUnknown 

    • Status (string): backup status of this backup item

    • LastBackupStatus (string): last backup operation status, possible values: Healthy, Unhealthy

    • LastBackupTime (DateTime): timestamp of the last backup operation on this backup item

    • LastBackupMinsAgo (int): minutes since the last backup operation on this backup item, or -1

    • LastRecoveryTime (DateTime): timestamp when the last (latest) backup copy was created for this backup item

    • LastRecoveryMinsAgo (int): minutes since the last backup copy was created for this backup item, or -1

    • OldestRecoveryPoint (DateTime?):

    • RecoveryPoints (int): number of backup copies available for this backup item, or -1

    • PolicyInconsistent (bool): specifies if backup policy associated with the backup item is inconsistent

  • Can be accessed only through aggregation using Expressions described in the Working with Expressions article.

  • Included in sample profile: yes, tracked as a metric called BackupJobs

  • Included in default alerts: yes, included in alerts:

    • Incomplete Backup Jobs Detected (Warning): Fires an alert when a backup job with a non-Complete status has been detected and sustained for 10 minutes.

    • Backups not started for last 24hrs (Warning), must be explicitly enabled: Fires an alert when last backup job was started more than 24hrs ago


AzureBackupVault24HrHistory

Provides a list with details of backup operations executed in the last 24 hours.

  • Data Type: array of objects with the following properties

    • Workload (string): friendly name of the entity on which the current job is executing

    • Type (string): backup management type to execute the current job. Possible values include: Invalid, AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql

    • Operation (string): operation name

    • Status (string): job status

    • StartedOn (DateTime)

    • EndedOn (DateTime)

    • Duration (string): duration for the completed jobs in the dd.hh:mm format, or an empty string

    • Details (string): errors details, or an empty string

  • Can be accessed only through aggregation using Expressions described in the Working with Expressions article.

  • Included in sample profile: yes, tracked as a metric called BackupJobs24HrsHistory

  • Included in default alerts: no


AzureBackupVaultContainers

Provides a list of containers with backup items.

  • Data Type: array of objects with the following properties

    • Name (string): friendly name of the container

    • Type (string): type of the container: 

      • Microsoft.Compute/virtualMachines for Compute Azure VM is 

      • Microsoft.ClassicCompute/virtualMachines for Classic Compute Azure VM

      • Windows for Windows machines (like MAB, DPM etc)

      • AzureSqlContainer for Azure SQL instance.

    • HealthStatus (string): health status

    • Status (string): status of registration of the container with the Recovery Services Vault

  • Can be accessed only through aggregation using Expressions described in the Working with Expressions article.

  • Included in sample profile: yes, tracked as a metric called Containers

  • Included in default alerts: no


ResourceStatus

Identifies the last state of the monitored resource. This is a critical metric that is captured for most types of resources that CloudMonix tracks. It is used for Uptime reports and should not be removed. ResourceStatus won’t be captured if no other metrics are tracked for Azure Backups.

  • Data Type: string

  • Possible values: Ready, Down, Unknown

  • Included in sample profile: no

  • Included in default alerts: no

  • Statuses are determined according to the following rules:

    • Ready - successfully connected to the resource and retrieved metrics

    • Down - there was an error when trying to retrieve data from the resource

    • Unknown - can’t connect to the resource (e.g. because of invalid credentials)


Alerts

Users can create alerts based on changes in any value tracked by CloudMonix (including custom metrics). Each resource template includes alerts which are suitable for a given resource. The predefined alerts for Azure Backup Vaults are listed in the Metrics section. Refer to the Alerts article to learn more about alerts in general.


Alerts are available during the Trial period or in Professional and Ultimate plans only.


Actions and Automation 


Automation features (Actions) allow users to set up powerful reactive, proactive and scheduled actions and auto-scaling rules. CloudMonix can execute actions and scale adjustments when a specific monitoring condition occurs or according to a schedule. Refer to the Actions article to learn more.


Automation features are available during the Trial period or in the Ultimate plan only.


Sample usages:

  • Automatically running backup operations according to a schedule or custom criteria


Built-in Actions 

AzureBackupVaultRunBackup

CloudMonix will request Azure to run a backup operation.

  • Requires specifying a container and workload

  • Included in default actions: no