AZ-305: Microsoft Azure Solutions Architect Expert
Design a business continuity solution
Design for Azure VM Backup and Recovery
This guide details how to design, implement, and manage backup and recovery for Azure Virtual Machines by onboarding them to a Recovery Services Vault and associating them with an appropriate backup policy.
How Azure VM Backup Works
When you onboard a Virtual Machine (VM) to Azure Backup, an extension is automatically installed on the VM. Based on your backup policy, the Azure Backup service triggers the extension to orchestrate the backup process.
During the backup process:
- A local snapshot is created on the VM.
- The snapshot is retained locally for five days, enabling an "instant restore" without the need to retrieve data from the Recovery Services Vault.
- The backup data is then securely transferred to the Recovery Services Vault for long-term storage and compliance.
This dual-layer strategy ensures both rapid local recovery (within the five-day retention) and robust, secure offsite storage.
Backup scheduling is a critical aspect of the process:
- Group VMs according to their backup policies to synchronize backup timings.
- Schedule backups during non-peak hours to manage network traffic efficiently.
- Define both short-term and long-term retention policies according to your business or compliance needs.
- For immediate needs, trigger an on-demand backup directly from the Recovery Services Vault.
Cross-region Restore (CRR) is another vital feature. CRR allows you to restore your Azure VMs in a paired region, which is especially useful for disaster recovery drills or during unexpected regional outages.
Configuring Backup in the Azure Portal
Follow these steps to configure backup for an Azure VM using the Azure portal.
Step 1: Creating a Recovery Services Vault
There are two primary approaches:
- Create a new Recovery Services Vault and onboard your VM(s) through it.
- For a single VM, navigate directly to the VM’s blade and enable the backup process.
In this example, you create a Recovery Services Vault by searching for "vault" in the Azure portal.
Click on "Create New Vault" to begin.
Note
During vault creation, the default storage redundancy is set to geo-redundant (GRS). Adjust this option before onboarding any VMs if you prefer a different redundancy model.
Once the vault is created, click "Go to resource" to start configuring backups.
Step 2: Configuring Backup Settings
Inside the vault, click on the "Backup" option. You will be asked to specify:
- The workload location (Azure, Azure Stack, or on-premises).
- The type of backup (e.g., Virtual Machine, file share, SQL Server in Azure VM, or SAP).
If you need to change the storage replication type from the default geo-redundant option, return to the Recovery Services Vault’s properties under the backup configuration settings. Here, you can switch between geo-redundant storage (GRS) and locally redundant storage (LRS). For production workloads, GRS is typically recommended; for development or test environments, LRS offers a cost-effective alternative.
After updating your settings as necessary, save the changes and return to the vault's overview.
Step 3: Associating Virtual Machines with a Backup Policy
In the "Backup" section, select "Azure" as the workload location and choose "Virtual machine" for the backup type. Various backup policies may be available, such as a standard once-daily backup or policies that support multiple backups per day. Select a policy that aligns with your operational schedule and retention needs.
Add the VMs you wish to back up. If multiple VMs share the same backup policy, you can add them simultaneously. In this example, the VM “SDVM01” is selected. For single test VMs, you can also initiate backup directly from the VM blade.
When you enable backup, the Azure Backup extension is deployed to your VM. This extension works in tandem with the backup schedule (for example, at 12 a.m.) to execute the backup.
You can monitor the extension deployment process. Additionally, once deployment is complete, there is an option to trigger an on-demand backup when needed.
Step 4: Monitoring and Managing Backups
After enabling the backup, navigate back to the Recovery Services Vault to view your backup items. Selecting a specific VM will display detailed backup status. Initially, you might find the backup status as pending; once the backup completes, the status and date will update accordingly.
If required, click "Backup now" to trigger an ad hoc backup, and specify the desired retention period. The backup status and completion details will be updated once the process finishes.
Additional Considerations
- For on-premises VMs, consider using the Azure Backup Server or System Center Data Protection Manager (DPM) based on your environment.
- Regularly review and update your backup policies to ensure they remain aligned with evolving business and compliance requirements.
- Utilize Cross-Region Restore (CRR) for disaster recovery drills or when restoring VMs in a partnered region.
Tip
Backup and recovery strategies for Azure SQL build on these concepts. Ensure that you tailor policies and settings to align with specific workload requirements.
For more in-depth information, explore the following resources:
This guide provides a comprehensive overview to help you establish a reliable backup and recovery strategy for your Azure Virtual Machines.
Watch Video
Watch video content