Back Up an Azure Virtual Machine with Azure Backup

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Azure Backup is a backup as a service solution that supports a range of different workloads.

Within this hands-on lab, you will have the opportunity to gain experience configuring Azure Backup for a virtual machine. We will be using the virtual machine direct method.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Recovery Services Vault

Use the Azure Portal to perform the following tasks. Please log in with the credentials provided to you for this lab.

Please take note of the region in use for all of the resources that have been deployed for you, as we will need to use the same region in the following steps.

Create a Recovery Services Vault

  1. Click on the + Create a resource option.
  2. Search for ‘backup and site recovery’.
  3. Choose the Backup and Site Recovery option, then click on ‘Create’
  4. Create the recovery services vault with the following settings:
    • Basics
      • Subscription: Select the existing subscription
      • Resource group: Select the existing resource group
      • Name: vault1
      • Region: Select the region in use for your existing resources
        1. Click on Review + create
Create a Backup Policy

Use the Azure Portal to perform the following tasks. Please log in with the credentials provided to you for this lab.

Create a Backup Policy

  1. Navigate to the recovery services vault, vault1, which you just created. You may search for vault1, access via all resources, or through the ‘Recovery Services vault’ service page.
  2. Click on Backup policies in the Manage section of the resource menu on the left-hand side.
  3. Click + Add within the resource command menu.
  4. Choose Azure Virtual Machine for the Policy Type.
  5. Create a policy with the following settings:
    • Policy name: NightlyVMBackup
    • Frequency: Daily
    • Time: 9:00 PM
    • Timezone: Select your own timezone
    • Instant restore: 1 day
    • Retention range: Daily for 7 days
    • No retention of weekly/monthly/yearly
    • Azure Backup Resource Group: Leave blank
  6. Click Create.
Enable Backups for VM1

Use the Azure Portal to perform the following tasks. Please log in with the credentials provided to you for this lab.

Enable Backups for VM1

  1. Navigate to the virtual machine, vm1, which has been created for you. You may search for vm1, access via all resources, or through the ‘Virtual Machines’ service page.
  2. Click on Backup in the Operations section of the resource menu on the left-hand side.
  3. Enable backups:
    • Recovery Services vault: select existing, vault1
    • Choose backup policy: NightlyVMBackup
    • Click Enable Backup

Additional Information

Azure Backup for virtual machines direct is a very simple process to enable. So the steps you’ve completed above are all that is required.

If you are configuring backups in your own environment, you might choose to:

  • Force a backup, using ‘Backup now’
  • Perform a VM restore, using ‘Restore VM’
  • Recover data, using ‘File Recovery’

Note that the backup and restore experience is different, depending on the Azure Backup solution you use. Azure Backup includes several other agents for different workloads and scenarios.

Additional Resources

Within this hands-on lab, you are going to assume the role of a system administrator. It has recently been brought to your attention that one of your virtual machines does not have backups configured.

After some discussion with the business, you have identified the required backup frequency and type of data that needs to be protected.

To complete this lab, you must configure a recovery services vault, backup policy, and enable backups for an existing virtual machine.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?