Azure Documentation

Backup and Restore Azure Virtual Machines

This document provides comprehensive guidance on backing up and restoring Azure Virtual Machines (VMs) using Azure Backup. Protecting your virtual machines is crucial for disaster recovery and business continuity.

Why Backup Your VMs?

Using Azure Backup for VMs

Azure Backup is a cloud-based backup solution that enables you to back up your Azure VMs and on-premises workloads. It offers:

Key Concepts

Steps to Configure VM Backup

Follow these steps to set up backup for your Azure VMs:

  1. Create a Recovery Services Vault: Navigate to the Azure portal, search for "Recovery Services vaults," and create a new vault.
  2. Enable Backup: In the vault's dashboard, click on "Backup" and select "Azure Virtual Machine" as the workload type.
  3. Select VMs: Choose the VMs you want to back up. You can select individual VMs or use backup policies.
  4. Configure Backup Policy: Define the backup schedule (e.g., daily at 2 AM) and retention duration (e.g., 30 days).
  5. Start Backup: Initiate the first backup job.
Important: Ensure your VM is running when the backup schedule is initiated for application-consistent snapshots. For crash-consistent snapshots, the VM can be stopped or running.

Restoring a VM

To restore a VM from a backup:

  1. Navigate to your Recovery Services vault.
  2. Go to "Backup Items" and select "Azure Virtual Machine."
  3. Select the VM you want to restore.
  4. Choose a recovery point from the list.
  5. Select the restore type:
    • Restore VM: Recreates the entire VM, overwriting the existing one or creating a new one.
    • Restore Files/Folders: Mounts the recovery point to a specified VM, allowing you to copy individual files.
  6. Follow the on-screen prompts to complete the restore process.

Advanced Scenarios

Learn More about Azure Backup Policies Explore Restore Options