Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it Possible To Move An Azure Virtual Machine To Another Region?

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?

like image 671
kevin peter Avatar asked Dec 07 '22 17:12

kevin peter


2 Answers

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.

like image 56
CHEEKATLAPRADEEP-MSFT Avatar answered May 20 '23 16:05

CHEEKATLAPRADEEP-MSFT


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.

like image 42
Shui shengbao Avatar answered May 20 '23 14:05

Shui shengbao