How to move VM to a new Virtual Network in Azure Portal

Moving VMs between different VNET is not supported. To move the VM to another VNET, the only solution for now is re-create the VM with the same vhd file.

To redeploy the VM with same vhd file, please try this template.

BTW, we are able to move the VMs between the subnets in the same VNET. It contains 3 steps:

  1. Get the VM (NIC) configuration
  2. Edit the VM (NIC) configuration
  3. Update the edited configuration

Here is a good step-by-step guide:

How to change Subnet and Virtual Network for Azure Virtual Machines (ASM & ARM)

Tags:

Azure