Change Private VM IP

Copper Contributor

Hi Guys,

 

I have two VMs in the same Vnet but both on different subnet

VM-1 10.0.0.0/24     default-subnet

VM-2 10.0.1.0/24     subnet-2

I want to bring VM-2 to same subnet as VM-1 (default-subnet).

 

I have disable the public IP from VM-2 and also power the machine down but when I am changing the subnet of the VM from MV> Networking> Network Interface> IP configuration > subnet*

I am getting attached error.

 

Please help.

 

Thank You.

1 Reply

@saeedtalpur 

 

Both of the VMs appear to be associated with different Availability Sets and Load Balancers.

 

You will need to delete VM2 while keeping the disks and recreate it using the existing disks.