How to change Virtual network/subnet in Azure?

Samath 121 Reputation points
2020-05-01T19:05:03.477+00:00

Hi,

When I created a VM in Azure I just realized at the end that choose the wrong:Virtual network/subnet

How can I change it once the machine is mounted?

Thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,980 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 85,596 Reputation points
    2020-05-01T19:21:31.573+00:00

    Hi,

    You can change the subnet, but not the virtual network, that a network interface is assigned to, more information here:
    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface#change-subnet-assignment

    (Please don't forget to mark helpful replies as answer)

    Best regards,
    Leon

    2 people found this answer helpful.
    0 comments No comments

  2. Samath 121 Reputation points
    2020-05-02T02:32:34.447+00:00

    So what should I do if I need to change it? Doesn't make sense that there is no way. The machine is already mounted.