How to add multiple IP addresses to an Azure Virtual Machine?

On the Azure portal, you can create and assign a static private and/or public IP address to a Virtual Machine, but you can also have more than one IP address assigned to the Virtual Machine. In this article, I wil explain how to add a secondary IP address to a Virtual Machine using the Azure portal.

Go to the Virtual Machines blade, and open the VM. Go to “Networking“, and click on the network interface

Click “Add” in order to add a secondary IP Address to the same NIC

Enter a friendly name to this IP, and then you can enter the IP address you want to add. Be careful, the IP address must be in the same subnet.

Click “OK” to save the configuration

You can start the VM and add this IP address as a secondary IP address in the Windows OS. Run a “ipconfig /all” command before updating the configuration. Don’t be afraid, you will loose the RDP connexion after saving the changes, but it will reconnect automatically.

Let’s run a new “ping” to confirm that the IP address is responding to the request

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 279 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.