Restore a Veeam Agent for Windows 2.0 backup to Azure
This process will outline the steps involved to restore a Veeam backup to an Azure VM.
In this case the backup is of an Azure Virtual Machine that has been backed up to a Veeam Cloud Connect provider, using the Veeam Agent for Windows (VAW).
The steps will be similar if you are restoring an on-site (non-cloud hosted) Virtual Machine (backed up using VBR), or an on-site physical machine that is backed up with VAW.
A limitation of backing up to Cloud Connect repository, is that you are not able to being a “Restore to Azure” job directly from your own VBR installation, this would have to be done by the Cloud Connect provider with their own VBR console, and you would need to liaise with them to arrange it to be done with your supplied Azure credentials. To work around this, we can download the backup files to a Veeam server of our own, and restore to Azure from there.
Before you start
You will need the following ready:
- An active Azure subscription to restore the backup into.
- A server running Veeam Backup & Replication 9.5, Update 2. (Preferably cloud hosted, but if local it will still work fine – just be much slower depending on your internet connection).
- Credentials & access to the Cloud Connect provider where the backup is stored.
- Enough storage on your server to download the backup files.
If you don’t have VBR license, you can download it from www.veeam.com and sign up for a 30 day trial.
Downloading the backup files
The first thing to do is download the backup files of the backup job from the Cloud Connect repository to your own VBR console. We have an Azure-hosted server running VBR 9.5 Update 2, and use it to connect to all of our customers Cloud Connect repositories.
- Just add the Cloud Connect account under Backup Infrastructure > Service Providers and fill in your account details.
- Once configured, you will need to make sure you have a backup repository that you can transfer the backup files to, and has enough storage. I have attached a 2TB disk to the azure server for this purpose.
- Under the “Files” section in VBR, browse the Cloud Connect repository and copy the backup folder of the VM you wish to restore. Paste them into your local repository folder. Depending on the size of the backup, and the speed of the connection, this will take a while.
- Re-scan the local repository, and you will see that it has added one backup job in the rescan summary screen. Go back to the “Backup & Replication” screen in VBR. The backup will show up under Backups > Disk (Imported), or if it was encrypted, under Backups > Disk (Encrypted).
- If it was encrypted, right-click on it and enter the encryption key, so you can work with the backup.
Preparing the Azure Subscription
- Go to https://portal.azure.com and sign into the subscription you wish to restore the VM into. Once signed in, you’ll need to do the following items.
- Create a resource group.
- Create a Storage account (standard, or premium – depending on what kind of disk you want to restore to.. SSD is premium storage).
- If a specific “Virtual network” is required, create it too. Otherwise the default will be available during restore.
- Once this is created, switch back to your Veeam console. You’ll need to add the Azure subscription details to the console. Here’s how:
- Click the small “menu” button in the top left, and select “Manage Azure Accounts”, in the window that pops up, click Add on the right.
- Step through the wizard to add your Azure account details.
Note: When adding the account, I found that having two-factor authentication turned on would cause the restore to fail. I was able to add the account via this wizard, but when restoring, the job failed with a 403 forbidden error.
Restoring the VM
To begin the restore process follow these steps. There are a few things to consider when doing this
What disks to restore
System disk is a must for obvious reasons! However, you may not want to restore the data volume, if they had an additional data drive on the server. The reason for this is, when doing the restore process, there is no option to select different storage accounts per disk, and you may want to have your system volume on premium storage, and your data volume on standard storage for example.
To get around this limitation, you can restore the additional drives once the VM is up and running via the Veeam Agent volume restore console within the restored VM
What you would do is create an additional “standard” storage account from within the Azure web portal. Create the additional disk for your VM, selecting standard (not premium) storage, and attach it to the VM.
From within Veeam “volume restore” wizard on the VM, you can restore the additional disk to the newly available volume on the server.
I’ll outline the steps again further down when we are up to that step.
The VM restore process
- In the VBR console, right-click on the backup job, and select Restore to Microsoft Azure…. You will be presented with the restore wizard. Select your Azure subscription, and Location.
- Enable the Use Azure proxy VM (recommended) option – I use the same VM the restore job is being run from since it’s in the same datacentre that the VM is being restored to (in this case, Australia East).
- Click Next. On the next screen, select the VM and click the Edit button down the bottom. You’ll be presented with a window to select the VM size, and storage account. Choose whatever size you want for the VM, and make sure you select the storage account you created earlier.
- Configure your exclusions. Click on the Exclusions button in the bottom right, and untick any disks you don’t wish to restore. In this case, I’ll only be restoring the system volume, and then will restore the data volume from within the VM using Veeam Agent for Windows. This will significantly reduce the time to get the VM online (but will just be missing the additional volumes until restored).
- On the next screen, select the Virtual Network and click Next.
- Enter a restore reason on the next screen (if required) and click Next.
- Review the summary to make sure everything looks okay, and click Finish.
- The restore process will begin. You’ll be presented with a progress window like below. Note the “remaining” data is reporting on the size of the volume. It can be misleading, as it will only need to restore the data within the disk – and can ignore empty blocks. To give an idea, this VM has about 45GB of data on it’s 127GB C: drive. The restore process took approx. 1 hour and 20 minutes, running at around 10-12 MB/s.
There’s no indication of where the bottleneck lies in this window, but a few things that may cause the restore speed to be slow may include:
- The storage the backup lives on. (standard or premium storage will determine the IOPS of the disk)
- The storage of the target VM being created.
- The data centre – if it’s being put into a different location than the location of the backups (e.g. restoring from Australia East to Australia South East or something similar)
- The processing power of the VM that needs to decrypt and decompress the backups.
Connecting to the restored VM
- Once the restore is 100% complete in the Veeam console, go back to the Azure web portal, and open the VM’s view. You’ll see your newly restored VM in there – running. Select it and click Connect to download the RDP file.
The VM will likely take a bit longer than usual to boot up for the first time, as it may need to reconfigure driver settings etc. I found I was not able to RDP to the machine for perhaps 5 minutes or so.
Adding additional Disks
If you have restored the system disk to a “premium” storage volume, and need to restore the additional data volumes to “standard” storage, you’ll need to perform the following tasks:
- Create a new storage account in the Azure subscription. Make sure it’s of the type you want (premium or standard).
- Select the Virtual Machine, and click on the disks option. Select Add disk.
- Fill out the details for the disk (size etc) and save it. Wait until the process finishes in the Azure portal before proceeding.
- Now switch back to the Virtual Machine (log into it), open the disk manager snap-in and refresh/rescan the disks to detect the new volume.
- You don’t need to format it, just make sure it’s initialized, so it’s a valid volume that Veeam can restore to.
- Open Veeam Agent for Windows “Volume Restore” application.
- Click through the restore wizard to restore your required volume/s to the desired disks on the server
- Select a restore point
- Select the disk/s to restore and map them to the correct volume
- Click Restore.
- Once the restore process completes, the data volume will be accessible.