Veeam: Restore / Migrate a VM to Azure

KB ID 0001511

Problem

Veeam is both a great company, and backup and recovery is the best product in its class by a country mile, (yes Zerto is great but it costs a fortune!) With Backup and Recovery 9.5 Update 4. You can recover a VM straight into Azure, (and Azure Stack).

Which pretty much means you can use Veeam to Migrate your VMs (or physical machines) from vCenter (or Hyper-V) into Azure/Azure Stack. You need to have a successful backup, (or replication) in Veeam before you start. (That goes without saying but I’ll get emails if I don’t point that out!)

Obviously you also need an Azure Subscription, and you will need to have (pre configured) the following;

  • A Resource Group
  • A Storage Account
  • A Virtual Network 
  • A Network Security Group

Veeam B&R Server Pre-Requisites

Veeam Backup and Recovery Download

Veeam Backup For Azure Download

You will need to disable IE Enhanced Security, (or as I refer to it, the “Randomly break things, before you discover it’s on and disable it feature”).

Disable IE enhanced

Add the following URLs to IE’s trusted sites & ensure Protected Mode is not enabled for this zone, (this is the default as shown);

  • https://login.live.com/
  • https://login.microsoftonline.com/
  • https://secure.aadcdn.microsoftonline-p.com/
  • https://auth.gfx.ms/
  • about:security_veeam.backup.shell.exe?ver=95u4

Disable Protected Mode Trusted Sites

Add in the Azure PowerShell Snap-ins;

Install-Module -Name AzureRM.Automation -RequiredVersion 5.1.1

Install Azure Power Shell

To connect to Azure you will need an Access Key > Login to Azure > All services > Storage Accounts > Select your storage Account > Access Keys > Copy a key to the clipboard.

Azure Storage Account Keys

Veeam: Adding Azure Accounts

From the main menu > Manage Cloud Credentials > Add > Microsoft Azure Storage Account > Supply your Azure Login > Paste in the key (from above) > OK.

Veeam Add Azure Storage Account

Repeat the procedure, but this time add ‘Microsoft Azure compute account”.

Veeam Add Azure Compute Account

Next.

Veeam Add Azure Account

Microsoft Azure > Next

Veeam Azure Account

Add > Supply your Azure credentials > OK > Next.

Veeam Azure Account Authentication

Finish (that was easy!)

Veeam Azure Account Summary

Veeam: Restore or Migrate a VM to Azure

Home > Restore > (select the platform, here I only have VMware vSphere) > Restore from Backup.

Veeam Restore to Azure

Entire VM Restore > Restore to Microsoft Azure.

Veeam Restore to Azure Wizard

Add in the VM to restore > Next > Select the subscription and location  > Next.

Veeam Restore VMware to Azure VM

Edit > Add in your Azure Storage Account > Select a VM size (WARNING The bigger, the more expensive!) > OK > Next > Group > Select your Resource Group > OK > Next.

Veeam Restore VMware to Azure Storage

Network > Add in your virtual network and subnet > Next > Group > Add in your Azure Network Security Group > Next.

Veeam Restore VMware to Azure Networking

I’m not going to scan my VM, but if you are recovering from an infection you might want to > Next > Next.

Finish > When successfully completed > Close.

Veeam Secure Restore VMware

Give your VM a while to power on, you can enable boot diagnostics to see if it is at the logon screen (Note: you need to manually refresh this screen).

Azure View boot Diagnostis

Then you can connect via RDP. Note: You may need to enable TCP Port 3389 inbound before this will work.

Azure Connection to VM

Don’t forget to remove VMware tools!

Azure Remove VMware tools

Related Articles, References, Credits, or External Links

NA

Author: PeteLong

Share This Post On

2 Comments

  1. This is all amazing, but shame there is no integration yet with Veeam and Azure so replications can be run directly into Azure. Backup/Backup Copy can, but not directly(need a VM in Azure).

    Again, great article. Thank you!

    Post a Reply
    • I’ll lay money it’s just a matter of time 🙂

      Pete

      Post a Reply

Leave a Reply to Bran Cancel reply

Your email address will not be published. Required fields are marked *