Can I move an Azure VM between virtual networks?

Can I move an Azure VM between virtual networks?

Q. Can I move ARM VMs between virtual networks?

A. No. Once a VM is provisioned it is tied to the virtual network and cannot be moved between virtual networks. To move a VM you would need to delete the VM but keep its storage, create a new VM with a vmNIC in the new virtual network and reuse the existing VHDs. If you had a large number of VMs you could script this to make it simpler.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish