Change Private VM IP

%3CLINGO-SUB%20id%3D%22lingo-sub-1711465%22%20slang%3D%22en-US%22%3EChange%20Private%20VM%20IP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1711465%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20two%20VMs%20in%20the%20same%20Vnet%20but%20both%20on%20different%20subnet%3C%2FP%3E%3CP%3EVM-1%2010.0.0.0%2F24%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bdefault-subnet%3C%2FP%3E%3CP%3EVM-2%2010.0.1.0%2F24%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bsubnet-2%3C%2FP%3E%3CP%3EI%20want%20to%20bring%20VM-2%20to%20same%20subnet%20as%20VM-1%20(default-subnet).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20disable%20the%20public%20IP%20from%20VM-2%20and%20also%20power%20the%20machine%20down%20but%20when%20I%20am%20changing%20the%20subnet%20of%20the%20VM%20from%20MV%26gt%3B%20Networking%26gt%3B%20Network%20Interface%26gt%3B%20IP%20configuration%20%26gt%3B%20subnet*%3C%2FP%3E%3CP%3EI%20am%20getting%20attached%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1758616%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Private%20VM%20IP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1758616%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F791043%22%20target%3D%22_blank%22%3E%40saeedtalpur%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBoth%20of%20the%20VMs%20appear%20to%20be%20associated%20with%20different%20Availability%20Sets%20and%20Load%20Balancers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20will%20need%20to%20delete%20VM2%20while%20keeping%20the%20disks%20and%20recreate%20it%20using%20the%20existing%20disks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New 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.