How to Back up & Restore Azure VMs with Veeam azure Backup

Published:24 May 2023 - 13 min. read

Verah Ombui Image

Verah Ombui

Read more tutorials by Verah Ombui!

Constantly worrying about your VMs and data ending up corrupted or missing? Why not turn to a cloud-native data protection solution? Whether for a VM or application, a Veeam Azure setup can save the day!

In this tutorial, you will learn how to configure Veeam Backup for Microsoft Azure, run backup policies, and perform recoveries.

Hold tight, as an efficient backup solution for your cloud environment solves your worst worries!

Prerequisites

This tutorial contains hands-on demonstration sections. To follow along, be sure you have the following:

  • A Windows machine with the latest web browser – This tutorial uses Windows 10 Pro v21H2 running Google Chrome.

Deploying Veeam for Azure Backup

Veeam Backup for Microsoft Azure allows you to back up and recover your Azure resources, such as virtual machines (VMs), disks, and file shares. But first, you will install Veeam Backup for Microsoft Azure on your Azure platform and create and configure an Azure VM.

Veeam Backup for Microsoft Azure integrates with the Veeam Backup & Replication platform. This solution provides a unified backup and recovery solution for both on-premises and cloud-based workloads.

To deploy Veeam Backup for Microsoft Azure:

1. Open your preferred web browser, log in to the Azure Portal, and click Create a resource, redirecting your browser to Azure Marketplace.

Initiating creating a new Azure resource
Initiating creating a new Azure resource

2. Next, create an Azure VM for Veeam Backup for Microsoft Azure, as follows:

  • Search for veeam, and look for Veeam Backup for Microsoft Azure BYOL Edition.
  • Click the Create dropdown, and choose v5, as shown below.

Your browser redirects to a page where you will create an Azure VM (step three).

Accessing the Azure marketplace
Accessing the Azure marketplace

3. Now, configure the following project details:

  • Subscription – Select an Azure subscription for managing the costs associated with the backup appliance.
  • Resource group – Select a resource group (existing or new) to hold resources related to the backup appliance.
Selecting an Azure subscription and resource group
Selecting an Azure subscription and resource group

4. Scroll down, and configure the instance details with the following:

  • Virtual machine name – Input a name for the backup appliance (i.e., VeeamAzureVM).
  • Region – Select a region (i.e., (US) West Us 3) where the backup appliance will operate.

Regardless of your chosen region, you can still manage Azure VMs operating in other Microsoft Azure regions.

Availability options – Choose whether you want any infrastructure redundancy to achieve high availability (Availability sets or Availability zone). But for this tutorial, choose the Availability zone option.

  • Availability zone – Choose Zones 1 to place the backup appliance within the selected Microsoft Azure region. Each region contains three availability zones. If one or more data centers in one zone malfunctions, your Azure resources become instantly available in another.
  • Image – Select Veeam Backup for Microsoft Azure BYOL Edition **in the dropdown list.
  • Azure Spot discount – Ensure the Azure Spot Instance option is disabled. The Azure spot functionality lets Azure redistribute currently unused storage capacity between different Azure resources. But this behavior may cause performance issues for the backup appliance if this option is enabled.

The Azure spot functionality lets Azure redistribute currently unused storage capacity between different Azure resources. But this behavior may cause performance issues for the backup appliance if this option is enabled.

  • Size – Choose a size for the backup appliance. The recommended hardware minimum is Standard_B2s with 2 vcpus and 4 GiB memory.
Configuring Veeam for Azure VM instance settings
Configuring Veeam for Azure VM instance settings

5. Now, configure the Administrator account as follows:

  • Authentication type – Choose Password for demonstration purposes.

Note that the SSH Public key is more secure than the Password option but requires extra configurations, which may make things appear complex.

  • Username and Password – Specify the default admin account credentials you will use later to log into Veeam Backup for Microsoft Azure.

Once configured, click Next : Disks > to continue.

Configuring an administrator account
Configuring an administrator account

6. Under the Disks tab, configure the VM’s disk settings:

  • OS disk type – Select Premium SSD (for better disk performance) to attach to the backup appliance.
  • Key management – Choose an encryption type for Veeam Backup for Microsoft Azure data based on your needs:
Encryption typeDetails
Platform-managed keyThe default encryption type where keys are generated, stored, and managed entirely by Azure.
Customer-managed keyLets you specify your own key and ensures better control of your keys and data, but it has several restrictions.

For a customer-managed encryption key to be displayed in the Disk encryption set list, it must be created in the Microsoft Azure Portal.

Leave the rest of the options as default (pre-configured by Veeam), and click Next : Networking > to continue.

Configuring VM Disk settings
Configuring VM Disk settings

7. At the Networking tab, configure the following network settings:

  • Virtual network, Subnet, and Public IP – Select the virtual network, subnet, and public IP (existing or new) to connect your backup appliance.
  • Configure network security group – Select a network security group (existing or new) to associate with the specified subnet.
  • Load balancing options – Choose None to disable load balancing since only one VM runs Veeam Backup for Microsoft Azure.

Once configured, click Next : Management > to proceed.

Configuring Network settings for the VM
Configuring Network settings for the VM

8. Now, configure management options as follows:

  • Identity – Tick the box to choose whether to grant identity access to the backup appliance to ensure protected access to Azure resources.
  • Auto-showdown – Ensure this feature is disabled to avoid unpredictable performance malfunction of the backup appliance.

After configuring, click Next: Monitoring > to continue.

Configuring the identity access for the VM
Configuring the identity access for the VM

9. Under the Monitoring tab, configure how to monitor your VM, which can help troubleshoot server malfunction issues:

  • Boot diagnostics – Select the first option to enable boot diagnostics, so you can choose whether to capture the console output and screenshots of the backup appliance.
  • Enable OS guest diagnostics – Tick this box to choose whether to collect capacity-related guest OS metrics.

Once configured, click Review + create to review the configured settings for your VM.

Setting the boot diagnostics options for the VM
Setting the boot diagnostics options for the VM

10. Lastly, review your selected settings and costs, and click Create to deploy Veeam Backup for Microsoft Azure.

Perhaps you plan to specify advanced configuration settings, deploy additional extensions, pass custom scripts, and assign tags to the backup appliance. If so, navigate to the Advanced and Tags pages, and follow the instructions provided in the wizard.

Reviewing the summary information before the installation process
Reviewing the summary information before the installation process

Accessing Veeam Backup for Microsoft Azure

With your Azure VM running, it is time to configure Veeam Backup for Microsoft Azure and ensure it works. But first, you will need to access Veeam Backup for Microsoft Azure via the Azure Portal.

To access Veeam Backup for Microsoft Azure, follow these steps:

1. Return to the Azure Portal dashboard, and click All resources to view all available Azure resources in your account.

Accessing all Azure resources
Accessing all Azure resources

2. Next, click your newly-created VM to launch it, as shown below.

Accessing the Veeam backup VM
Accessing the Veeam backup VM

3. Copy and navigate to your VM’s Public IP address (available over HTTPS only) in a new browser tab to access Veeam Backup for Microsoft Azure.

Note that Internet Explorer cannot access Veeam Backup for Microsoft Azure. You must use other browsers’ latest versions instead, like Microsoft Edge, Mozilla Firefox, or Google Chrome.

Copying the Veeam For Azure public IP address
Copying the Veeam For Azure public IP address

Wait for the initial run to complete.

Waiting for the initial run to complete
Waiting for the initial run to complete

4. Now, log in to Veeam Backup for Microsoft Azure with your administrator credentials.

In the future, you can add other users to grant access to Veeam Backup for Microsoft Azure.

Logging in to Veeam Backup for Microsoft Azure
Logging in to Veeam Backup for Microsoft Azure

5. Now, read the license agreement, and click Accept.

Accepting the license agreement
Accepting the license agreement

Once logged in, your browser redirects to the Veeam Backup for Microsoft Azure console, as shown below.

Overviewing the Veeam Backup for Microsoft Azure console
Overviewing the Veeam Backup for Microsoft Azure console

Adding Azure Service Accounts

Great job setting up and accessing the Veeam Backup for Microsoft Azure console! But what can you accomplish in the console? You can add an Azure service account to grant applications, services, and tools access to Azure resources.

To add an Azure service account via the Veeam Backup for Microsoft Azure console:

1. Click the first step, as shown below, or navigate to Accounts (left pane) to access the accounts management page.

Accessing the accounts management page
Accessing the accounts management page

2. Next, click Add under the Azure Accounts tab to launch the Add Azure Account wizard.

Initializing adding a new Azure service account
Initializing adding a new Azure service account

3. Provide an account Name and Description, and click Next.

Naming the Azure service account
Naming the Azure service account

4. Now, choose the first option to create a service account automatically ****to Azure Active Directory (AD), and click Next.

Selecting the service account type
Selecting the service account type

5. Copy the authentication code, and navigate to https://microsoft.com/devicelogin in a new browser tab, which opens the Microsoft Azure device authentication page.

Copying the authentication code
Copying the authentication code

6. Input the code you copied in step five, click Next, and select an account to authenticate in accessing the Azure CLI.

Authorizing the Azure service account
Authorizing the Azure service account

7. Once authenticated, check whether any errors occurred during the authentication process in the Add Azure Account wizard, and click Next.

Note that the account must be assigned either the User Access Administrator or the Owner role.

Confirming the authenticated Azure service account
Confirming the authenticated Azure service account

8. Tick the box below, and select a group to add to the Azure AD application. Doing so allows backing up Azure resources as a group.

Adding service accounts to AD groups allows users to limit access to the service accounts only to specific Azure subscriptions.

Note that a group must be created in the Microsoft Azure Portal to be displayed in the list.

Setting the application group to add the Azure AD application
Setting the application group to add the Azure AD application

9. Lastly, review the selected configuration information, and click Finish to finalize configuring the new Azure service account.

Finalizing adding an Azure service account
Finalizing adding an Azure service account

Configuring Backup Repositories

With a service account logged in, you are almost ready to perform backups for Microsoft Azure resources. How? Veeam Backup for Microsoft Azure uses blob containers as target locations for image-level backups of Azure VMs.

To store backups in blob containers, you must configure backup repositories as follows:

1. On the Veeam Backup for Microsoft Azure console, click the Configuration menu (top-right) to access the configuration settings.

Accessing the configuration settings
Accessing the configuration settings

2. Next, navigate to Repositories (left pane), and click Add to initiate adding a new backup repository.

Adding a new backup repository in Veeam
Adding a new backup repository in Veeam

3. Enter a Name and Description for the backup repository, and click Next.

Naming the backup repository
Naming the backup repository

4. Now, select the Azure service account to access your newly-created repository.

Specifying the Azure service account
Specifying the Azure service account

5. Click Specify storage account, select an account to access the backup repository in the pop-up window, and click Apply.

For a storage account to be displayed in the list of available accounts, it must be created in the Microsoft Azure Portal.

Specifying the Azure storage account
Specifying the Azure storage account

6. Click Not specified, select a blob container as a target location for backups of Azure resources, and click Apply.

Note that a container must be created for the selected storage account in the Microsoft Azure Portal to be displayed in the container list.

Specifying the Azure-associated container
Specifying the Azure-associated container

7. Scroll down, and configure the folder and storage class settings:

  • Folder – Select the Create new folder option for grouping the backup files stored in the container, and specify a folder name (i.e., VeeamForAzure).
  • Storage class – Select the Auto-create all tiers option to create three separate repositories for the Hot, Cool, and Archive access tiers automatically.

Once configured, click Next to continue.

Creating a folder in the container and choosing a storage class
Creating a folder in the container and choosing a storage class

8. Next, choose whether you want to encrypt backups stored in the selected blob container. But for this tutorial, leave the encrypt off, and click Next.

Configuring the encryption type
Configuring the encryption type

9. Now, leave the Load control option disabled for this tutorial, and click Next. But when necessary, set the repository load options as follows:

  • Tick the box shown below to Limit concurrent backup tasks.
  • Specify the maximum number of tasks that can be simultaneously processed when addressing the repository.
Configuring the concurrency settings
Configuring the concurrency settings

10. Review the summary, and click Finish to finalize adding the backup repository.

Optionally, you can choose whether you want to view the session log to track the progress of the repository creation.

Finalizing adding the backup repository
Finalizing adding the backup repository

Automating Backups with a VM Backup Policy

Efficiently backing up your VMs is now at your fingertips with a backup repository. But if you have more important tasks to prioritize, Veeam Backup for Microsoft Azure can help.

By creating VM backup policies, you can automate backing up your VMs. This feature ensures your VMs are protected, and you can recover them when data loss or corruption strikes.

To create VM backup policies, follow these steps:

1. Navigate to Policies (left pane), and click Add under the Virtual Machines tab to launch the Add VM Policy wizard.

Adding a new VM policy
Adding a new VM policy

2. Next, provide a policy Name and Description, and click Next.

Naming the VM policy
Naming the VM policy

2. In the Sources tab, click Select Azure Active Directory, select your Azure service account from the list, and click Apply.

This Azure account’s permissions will be used to access Azure services and resources.

The specified Azure account must belong to a tenant managing the Azure VMs you want to protect.

Selecting the Azure AD for the VM policy
Selecting the Azure AD for the VM policy

4. Configure the region settings as follows:

  • Click Choose regions to view the list of available regions. ****
  • Select the necessary regions from the list, and click Add to add them to the table list on the right.
  • Click Apply to save the changes.
Choosing the Azure backup regions
Choosing the Azure backup regions

5. Next, click Select resources to protect, specify the resources to backup or exclude from the policy, and click Apply to save the changes.

With all the settings configured, click Next to continue.

Selecting the resources to protect
Selecting the resources to protect

6. Configure the guest processing settings, and click Next.

These settings specify what actions Veeam Backup for Microsoft Azure will perform when communicating with the guest OSes.

Configuring the guest processing settings
Configuring the guest processing settings

7. Next, configure backup target settings, and click Next.

You can leave the Enable backups option off since backup policies create only cloud-native snapshots of processed Azure VMs.

Configuring the backup target settings
Configuring the backup target settings

8. Specify the policy scheduling options, and click Next.

These options instruct Veeam Backup for Microsoft Azure to start the backup policy automatically by schedule. The backup schedule defines how often the Azure VMs’ data added to the backup policy will be backed up.

Specifying the schedule settings
Specifying the schedule settings

9. Enable automatic retries, schedule health checks, specify notification settings for the backup policy, and click Next.

Setting the automatic retries
Setting the automatic retries

10. Review the approximate monthly cost of your Azure services, and click Next.

These services are what Veeam Backup for Microsoft Azure will require to protect your Azure VMs added to the backup policy.

Reviewing the estimated Azure costs
Reviewing the estimated Azure costs

11. Review the summary and click Finish to create the VM backup policy.

Finalizing the VM backup policy
Finalizing the VM backup policy

12. Finally, select the newly-created policy, and click Start to run the backup policy.

Starting the backup policy
Starting the backup policy

Performing a VM Restore

You have successfully started a fully functional VM backup policy, which is excellent. But how do you perform a restore when necessary?

You can restore one or more Azure VMs at a time to the original or new locations. If a disaster strikes, you can restore an entire VM from a cloud-native snapshot or image-level backup.

To restore an Azure VM, follow these steps:

Navigate to Protected Data (left pane), and select your Azure VM to restore under the Virtual Machines tab.

Selecting an Azure VM to restore
Selecting an Azure VM to restore

Now, click the Restore dropdown, and choose VM Restore to restore your selected VM.

Starting the restore process
Starting the restore process

Performing a Disk Restore

Like restoring VMs, performing a disk restore lets you restore data, but only from a specific disk, instead of wasting time restoring an entire VM.

To restore virtual disks attached to protected Azure VMs:

1. While on the Protected Data page, select the VM whose virtual disks you wish to restore, click the Restore dropdown, and choose Disk Restore. Your browser redirects to the Restore Disks wizard page.

Selecting a VM with the virtual disk to restore
Selecting a VM with the virtual disk to restore

2. Next, select a restore point to restore the virtual disks of the selected Azure VM, and click Next.

By default, Veeam Backup for Microsoft Azure uses the most recent valid restore point, but you can restore the disks to an earlier state.

Choosing a restore point
Choosing a restore point

3. Now, click Select account, select an Azure account whose permissions Veeam Backup for Microsoft Azure will use to perform the restore operation, and click Apply.

Selecting an Azure account to perform the restore operation
Selecting an Azure account to perform the restore operation

4. Choose the location to restore the selected virtual disks (to the original or a custom location), and click Next.

Specifying the VM restore Azure location
Specifying the VM restore Azure location

5. Select the necessary disk to restore, and click Next.

Specifying the specific disk to restore
Specifying the specific disk to restore

6. Specify a reason for the restoration.

Providing the reason for the disk restore
Providing the reason for the disk restore

7. Lastly, review the summary information and click Restore to perform the restore operation.

Starting the disk restore process
Starting the disk restore process

Performing a File-Level Recovery

When you are missing a file or if it is corrupted, performing a VM or disk restore may be overkill. The file-level recovery will suffice if you know exactly which file or folder to restore.

To recover files and folders of a protected Azure VM:

1. Navigate to Protected Data (left pane), and select which VM to restore the file or folder.

Initiating a file-level restore
Initiating a file-level restore

2. Next, select a restore point to recover the file or folder, and click Next. The most recent valid restore point is selected by default.

Selecting a restore point

3. Specify a reason for the file-level restore, and click Next.

Providing a file-level restore reason
Providing a file-level restore reason

4. Now, review the summary, and click Start to proceed with the file-level restore process.

Starting the file-level restore
Starting the file-level restore

Monitoring Backup or Restore Processes

Can you rest easy with an automated backup process for your VMs? Typically, you would want to view each backup and restore process logs.

To monitor backup and restore processes:

1. Navigate to Session Log (left pane), which lists all backup and restore processes for your VMs.

Accessing the session logs
Accessing the session logs

2. Next, identify the session log you wish to monitor, like a Disk Restore, and click on the Status link (i.e., Running, Success, or Error).

Selecting a session log
Selecting a session log

3. Lastly, review the session details and the actions performed so that you can take corrective measures.

Viewing the session log details
Viewing the session log details

Conclusion

Protecting your Azure VMs and data from unforeseeable disasters may seem a bit of a stretch. But in this tutorial, you learned how to back up and restore Azure VMs with the Veeam – Azure setup.

Veeam Backup for Microsoft Azure, a comprehensive backup and recovery solution, reminds you that your Azure resources are safe and sound. You can now ensure business continuity and also meet data protection requirements.

Now, besides Azure VMs, would you trust Veeam to protect your AWS resources?

Hate ads? Want to support the writer? Get many of our tutorials packaged as an ATA Guidebook.

Explore ATA Guidebooks

Looks like you're offline!