Is it Possible To Move An Azure Virtual Machine To

2020-07-23 05:09发布

问题:

I have an Azure VM with un-managed disk. I want to move it to another region.

Is there any other way than generalizing my current VM?

回答1:

Is there any other way than generalizing my current VM?

Azure does not support changing a VM's location. You need copy the VM's VHD to another location and use that VHD to create a new VM.

If you don't use current VM's VHD to create multiple VMs in other location, you don't need generalize your VM. Please refer to following steps.

  1. Stop your VM.

  2. Create a new storage account and blob container in another location.

  3. Copy VHD to the new storage account, you could use Azcopy. For more information about Azcopy please refer to this article.

AzCopy /Source:https://shuidisks446.blob.core.windows.net/vhds /Dest:https://shuidiag102.blob.core.windows.net/vhds /SourceKey:sGqtdFHQWQWYyf2tRWGF5jkeAEubTp13AVaeTM25QogxXE+K0Ezq1ulcs18qGVPhCEp6ULdLLbKVa7fMbUvYZg== /DestKey:iCjeS+eegjkSJXHjH2UqCkqXnUPiCGvxaOG0Ad2LoPgUnvBoWl9wQJtC1jc//lOj4CF7khpLQe791P4QeyTY6Q== /Pattern:shui20161222141315.vhd
  1. Use the VHD to create a new VM. It is easy for you to recreate with existing VHD by using this template.

Important: Because you don't generalize your currently VM, please don't start two VM at the same time. The second would have the same network issue.



回答2:

Note: You cannot change the location of the resource. Moving a resource only moves it to a new resource group. The new resource group may have a different location, but that does not change the location of the resource.

For more details, refer "Move resources to new resource group or subscription".

You need to generalize the VM in order to move it to another region.

You may leave you feedback here:

Ability to move virtual machines to a different region

All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.



回答3:

Yes, even though the VM is generalized if you restore from backup the working state will get restored

Plan your VM backup infrastructure in Azure https://docs.microsoft.com/en-us/azure/backup/backup-azure-vms-introduction

Back up Azure virtual machines to a Recovery Services vault https://docs.microsoft.com/en-us/azure/backup/backup-azure-arm-vms

Use Azure portal to restore virtual machines https://docs.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms



回答4:

Azure Site Recovery now offers migration capability between some regions. See this link for details. https://docs.microsoft.com/en-us/azure/site-recovery/azure-to-azure-tutorial-migrate

Notably, you can only move between supported regions as shown here - basically the same continent. https://docs.microsoft.com/en-us/azure/site-recovery/azure-to-azure-support-matrix#region-support