question

Samath-5199 avatar image
0 Votes"
Samath-5199 asked LeonLaude commented

How to change Virtual network/subnet in Azure?

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered LeonLaude edited

Hi,

You can change the subnet, but not the virtual network, that a network interface is assigned to, more information here:
https://docs.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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Samath-5199 avatar image
0 Votes"
Samath-5199 answered LeonLaude commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Create a new network interface for your Azure virtual machine and assign it to the correct virtual network, then delete the other network interface that is in the wrong virtual network.

1 Vote 1 ·