Cuir in eagar

Comhroinn trí


Back up an Azure VM from the VM settings

This article describes how to back up Azure VMs with the Azure Backup service.

Azure Backup provides independent and isolated backups to guard against unintended destruction of the data on your VMs. Backups are stored in a Recovery Services vault with built-in management of recovery points. Configuration and scaling are simple, backups are optimized, and you can easily restore as needed. You can back up Azure VMs using a couple of methods:

  • Single Azure VM: The instructions in this article describe how to back up an Azure VM directly from the VM settings.
  • Multiple Azure VMs: You can set up a Recovery Services vault and configure backup for multiple Azure VMs. Follow the instructions in this article for this scenario.

Before you start

  1. Learn how Azure Backup works, and verify support requirements.
  2. Get an overview of Azure VM backup.

Azure VM agent installation

To back up Azure VMs, Azure Backup installs an extension on the VM agent running on the machine. If your VM was created from an Azure Marketplace image, the agent will be running. In some cases, for example if you create a custom VM, or you migrate a machine from on-premises, you might need to install the agent manually.

  • If you do need to install the VM agent manually, follow the instructions for Windows or Linux VMs.
  • After the agent is installed, when you enable backup, Azure Backup installs the backup extension to the agent. It updates and patches the extension without user intervention.

Back up from Azure VM settings

Follow these steps:

  1. Sign in to the Azure portal.
  2. In the Search, type Virtual machines, and then select Virtual machines.
  3. From the list of VMs, select the VM you want to back up.
  4. On the VM menu, select Backup.
  5. In Recovery Services vault, do the following:
    • If you already have a vault, select Select existing, and select a vault.

    • If you don't have a vault, select Create new. Specify a name for the vault. It's created in the same region and resource group as the VM. You can't modify these settings when you enable backup directly from the VM settings.

      Screenshot shows how to enable backup wizard.

6.Select Policy subtype as Enhanced or Standard based on your requirement.

  1. Under Choose backup policy, do one of the following:

    • Leave the default policy. For Standard policy, this backs up the VM once a day at the time specified, and retains backups in the vault for 30 days. For Enhanced policy, this backs up a VM every four hours at the time specified and retains daily backup point for 30 days.

    • Select an existing backup policy if you have one.

    • Create a new policy, and define the policy settings.

      Screenshot shows how to select a backup policy.

  2. Select Enable Backup. This associates the backup policy with the VM.

    Screenshot shows the selection of Enable Backup.

  3. You can track the configuration progress in the portal notifications.

  4. After the job completes, in the VM menu, select Backup. The page shows backup status for the VM, information about recovery points, jobs running, and alerts issued.

Screenshot shows the backup status.

  1. After enabling backup, an initial backup run. You can start the initial backup immediately, or wait until it starts in accordance with the backup schedule.
    • Until the initial backup completes, the Last backup status shows as Warning (Initial backup pending).
    • To see when the next scheduled backup will run, select the backup policy name.

Run a backup immediately

Follow these steps:

  1. To run a backup immediately, in the VM menu, select Backup > Backup now.

    Screenshot shows how to run backup.

  2. In Backup Now, use the calendar control to select until when the recovery point will be retained > and OK.

    Screenshot shows the backup retention day.

  3. Portal notifications let you know the backup job has been triggered. To monitor backup progress, select View all jobs.

Back up from the Recovery Services vault

Follow the instructions in this article to enable backup for Azure VMs by setting up an Azure Backup Recovery Services vault, and enabling backup in the vault.

Next steps