Last Update: Sep 04, 2024 | Published: Jan 03, 2019
Azure Backup can protect a virtual machine via backup – Azure Site Recovery (ASR) provides disaster recovery services. The backup job protects the metadata and disks of the virtual machine to long-term storage. This backup can be used to recover the machine, the disks, and even files from the backup storage. Additionally, a workload-specific extension (SQL Server today) can be installed in the machine to protect SQL Server using its own APIs instead of just a machine-based backup.
Each of the ways that you can restore an Azure virtual machine from a backup are generalized into four categories:
When you back up a virtual machine, the metadata and disks are protected. This might offer application consistency for workloads such as SQL Server inside a Windows virtual machine, but it does not offer a backup that leverages the APIs of the workload. For example, backing up a machine with SQL Server doesn’t offer point-in-time database restores or log truncation. If you deploy a workload protection plan, you can leverage those APIs and get more advanced levels of backup and restore … for the workload.
Now, the only workload inside an Azure virtual machine that is supported is SQL Server. However, more workloads are planned.
There are times when you need to create a new virtual machine from a backup. Maybe you have a process for doing test restores? Maybe you need to generate a copy of a production machine for some research or testing? Or maybe someone deleted the wrong machine and you need to get it back as quickly as possible without invoking a DR (ASR) failover to another region?
There are two options in this type of restore:
Let’s say a virtual machine has had a massive corruption – once for me it was a MySQL database that was completely un-recoverable and broke a WordPress deployment. If that’s the case you can select this option to replace the disks of an existing virtual machine. This process can be extremely quick, especially if you have an upgraded recovery services vault and you are restoring from a backup job that was done in the last week – the restore is a disk to disk copy within the storage cluster.
This is my favorite of the restore options to show to people that are new to Azure because it shows some of the clever things that you can do in an integrated software-defined cloud such as Azure.
If you need to restore one or some files from a backup, then you can choose this option. The process will generate a tool that you can use to securely mount the recovery point using iSCSI. This can be done from any machine, not just the machine that was backed up! For example, if I need to get a file onto my PC, as long as I have permissions, I can generate/download the mounting tool, run it on my PC and recover files … without the lengthy process of restoring a full machine or its disks.
Note that there are some limitations: