2

I recently started using Azure Recovery Services vault to backup our Azure VMs.

It worked so well that I'm considering using it to clone existing VMs to save myself setup time when I need a new one.

However, I cannot figure out how to restore a backup to a different data center.

When you use the UI to perform a restore, you are given an option to pick a Resource Group, Virtual Network, Subnet, and Storage account, but the data center stays the same as the one where the VM was backed up.

I've looked at the Powershell commands for Recovery Services Vaults but I have not discovered a way to specify the data center.

Is this possible? If so, how?

  • Is your backup vault in geo-replication mode? – CtrlDot Jul 30 '16 at 2:18
  • yes, geo-replicated – Zack Jul 31 '16 at 14:19
3

You can only backup/restore VMs within the same datacenter. Best way is to create an image of your VM and copy the generated vhd to a new storage in the secundary datacenter. I like the following approach if you are using ARM:

How to capture a Windows virtual machine in the Resource Manager deployment model

The good thing about resource explorer is that it generates the .json file necessary to recreate the same environment. You can then use it to redeploy the VM in a new region by basically changing a few variables like vhd, storage path and location.

For classic VMs:

Capture an image of an Azure Windows virtual machine created with the classic deployment model

0

There is another way to restore the VM from backup to different region.

First restore VM disks from backup using the following MS KB article. https://docs.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms#restore-backed-up-disks

Then move the vhd files of VM from one region storage account different region storage account.(You can do this manually by using Azure Storage explorer tool or by using the AzCopy tool)

After moving, create a VM from storage vhd using below MS KB article. https://docs.microsoft.com/en-us/azure/backup/backup-azure-vms-automation#restore-an-azure-vm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.