Skip navigation
Microsoft Azure Logo

Can an Azure VM be moved between virtual networks

Q. Can I move an Azure VM between virtual networks?

A. Historically it was not possible to move a vmNIC between virtual networks, only virtual subnets however it is possible to add and remove NICs post creation and so a possible solution to this approach would seem to be as follows:

  1. Turn off NLA requirement in the Remote tab of System control panel applet (sysdm.cpl) before changing the virtual network
  2. Deallocate the VM
  3. Add a new NIC to the VM on the desired virtual network and virtual subnet
  4. Change the primary NIC to the newly added NIC
  5. Remove the old NIC from the VM
  6. Start the VM

For the exact commands required see Unfortunately this still does not work! The Azure fabric will not allow a VM to be connected to different virtual networks at the same time, even when the VM is deprovisioned and so this approach will not work and you always have to have at least one NIC attached to a VM so you cannot remove the VM first.

This means the only way to move a VM between virtual networks is to delete it, keep its storage and create a new VM connected to the correct virtual network using the existing disks.

Hide 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.