Share on Facebook0Share on Google+0Share on LinkedIn0Share on Reddit0Tweet about this on Twitter0

In this article, I will explain to you how to change the subnet of a Virtual Machine in Azure. Following is the official documentation on the Microsoft Website this documentation.

To do this, you must use PowerShell (this is the only possibility to do this, maybe in next versions, it will be possible to do this with the GUI). As you can see, my VM has the IP address 10.0.0.4:

1

My two subnets in my network are the following:

2

The VM is actually on the FrontEnd subnet and I would like to move it to the BackEnd subnet. To do this, execute the following PowerShell command:

Get-AzureVM -Name sql-001 -ServiceName Demo | Set-AzureSubnet -SubnetNames BackEnd | Update-AzureVM

StarWind Virtual SAN eliminates any need for physical shared storage just by mirroring internal flash and storage resources between hypervisor servers. Furthermore, the solution can be run on the off-the-shelf hardware. Such design allows StarWind Virtual SAN to not only achieve high performance and efficient hardware utilization but also reduce operational and capital expenses.
Learn more about ➡ StarWind Virtual SAN.

3The VM will restart after the execution of the Update-AzureVM cmdlet. When it’s done, go back to your Azure VM interface. You can see that the new IP is in my BackEnd range:

4

Don’t forget to change the IP in your DNS too if you don’t allow DNS Dynamic Updates. In my VM, I have now  the same IP as in Azure Portal:

5

Appreciate how useful this article was to you?
1 vote, average: 4.00 out of 51 vote, average: 4.00 out of 51 vote, average: 4.00 out of 51 vote, average: 4.00 out of 51 vote, average: 4.00 out of 5
4 out of 5, based on 1 review
Loading...

Views All Time
1
Views Today
6
Appreciate how useful this article was to you?
1 vote, average: 4.00 out of 51 vote, average: 4.00 out of 51 vote, average: 4.00 out of 51 vote, average: 4.00 out of 51 vote, average: 4.00 out of 5
4 out of 5, based on 1 review
Loading...
The following two tabs change content below.
Florent Appointaire
Florent Appointaire is Microsoft Engineer with 5 years of experience, specialized in Cloud Technologies (Public/Hybrid/Private). He is a freelance consultant in Belgium from the beginning of 2017. He is MVP Cloud and Datacentre Management. He is MCSE Private Cloud and Hyper-V certified. His favorite products are SCVMM, SCOM, Windows Azure pack/Azure Stack and Microsoft Azure.