Lesson 2 of 4 Backup Solutions

Backing Up Virtual Machines and Servers

This lesson explains how to protect Azure virtual machines, on-premises servers and containers.

Learning outcomes

After completing this lesson, you will be able to:

  • Compare Standard and Enhanced backup policies.
  • Compare the MARS agent with Azure Backup Server.
  • Describe backup for AKS.

Azure virtual machines

Azure Backup protects virtual machines with no agent inside the guest to install by the customer: an extension takes a snapshot, and the data is transferred to a Recovery Services vault. On Windows, it coordinates with the Volume Shadow Copy Service to produce application-consistent recovery points. On Linux, scripts can quiesce applications for the same result. Recovery can create a new virtual machine, replace disks on an existing one, or recover individual files.

Two policy types exist. A Standard policy takes one backup a day. An Enhanced policy supports multiple backups a day, at intervals as frequent as every four hours, giving a four-hour RPO, and it keeps snapshots longer for faster restores. It also supports newer virtual machine capabilities, such as Trusted Launch and Premium SSD v2. A new design should generally use an Enhanced policy.

Instant restore provides quick recovery from snapshots kept near the source, before data reaches the vault. Selective disk backup can exclude unneeded disks to reduce cost, such as a temporary data disk.

The following diagram matches three kinds of machine to the backup tool that suits each.

Matching three machines to a backup tool. Azure virtual machines with Trusted Launch and a six-hour RPO need an Enhanced policy in a Recovery Services vault, as a Standard policy runs once a day. On-premises file servers suit the MARS agent. A Hyper-V cluster needing application-aware backups and fast local restores needs Azure Backup Server.
MARS stands for Microsoft Azure Recovery Services.
Scenario questions

VM backup policy

Exam skills 3.1.2

Choose the VM backup settings for each requirement.

Log in to try this activity Interactive activities are free with an account.

Azure disks and scale sets

Azure Disk Backup uses a Backup vault to take incremental snapshots of a managed disk, several times a day if necessary, independently of whether the disk is attached. It is useful when only a disk matters, rather than a whole virtual machine, and it can be combined with virtual machine backup. Stateless scale set instances typically do not need backups, since their images and configuration are the real source of recovery, a point which shows that not all compute requires backup.

On-premises servers

Azure Backup offers two main tools for servers outside Azure.

Microsoft Azure Recovery Services agent

The MARS agent runs on a Windows machine and backs up files, folders and system state directly to a Recovery Services vault. It is lightweight and suits simple file protection, up to three times per day. It does not back up application data in an application-consistent way, for example with SQL Server.

Microsoft Azure Backup Server

Microsoft Azure Backup Server (MABS) is an on-premises server that protects workloads such as SQL Server, SharePoint, Exchange, Hyper-V and VMware virtual machines. It writes to local disk first, for fast restores, and then sends copies to the vault. It suits organizations needing application-aware, on-premises backups, with the cloud for long-term retention.

The following comparison summarizes the two tools.

MARS agent
InfrastructureAgent on each machine
What is protectedFiles, folders, system state
Local copyNo
Application awarenessNo
Choose when Simple file protection
Azure Backup Server
InfrastructureA dedicated backup server
What is protectedApplications, Hyper-V and VMware machines
Local copyYes
Application awarenessYes
Choose when Application-aware on-premises protection
Sort into groups

MARS or MABS?

Exam skills 3.1.2

Choose the on-premises backup tool for each requirement.

Log in to try this activity Interactive activities are free with an account.

Azure App Service and Kubernetes

Platform services have their own recovery mechanisms. App Service offers automatic backups of an app's content and configuration, and custom backups to a storage account for longer retention. A linked database should be protected through its own service: automatic backups do not include it, and Microsoft is withdrawing linked database support from custom backups, with all support ending by 31 March 2028.

Azure Backup for AKS protects cluster resources and persistent volumes, using a Backup extension installed in the cluster, a Backup vault and a storage account. The Operational tier keeps snapshots in the cluster's tenant for fast restores, and the Vault tier moves data offsite for long-term retention and cross-region restore, although it supports only Azure Disk volumes. A well-designed container platform should also rebuild clusters from code, since manifests and images are held in repositories and registries.

True or false

Backing up platforms

Exam skills 3.1.2

Check how App Service and AKS are protected.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing compute backup

A company has 50 Azure virtual machines with Trusted Launch, and the application team has an RPO of six hours. On-premises, it has file servers needing simple protection and a Hyper-V cluster requiring application-aware backups, with local fast restores. What should you recommend?

The Azure virtual machines need an Enhanced policy, which supports Trusted Launch and can run every six hours, in a Recovery Services vault. A Standard policy would run only once a day, failing the RPO.

File servers suit the MARS agent. The Hyper-V cluster needs application awareness with a local copy, so Azure Backup Server is the correct tool. Azure Site Recovery would address disaster recovery of the machines, but not retained backups, and installing MARS on the Hyper-V hosts would not provide application-aware protection for guest workloads.

Check yourself

Can the MARS agent make application-consistent backups of SQL Server?

Show answer

No. It protects files, folders and system state. Azure Backup Server provides application-aware backups.

Exam Tips

Remember for the exam

  • Enhanced policy gives backups as often as every four hours and supports Trusted Launch.
  • MARS backs up files and system state; MABS gives application-aware on-premises backup with a local copy.
  • Azure Disk Backup uses a Backup vault for incremental disk snapshots.
  • Azure Backup for AKS needs a Backup extension in the cluster.