azureiisvirtual-machinenicazure-public-ip

Assign multiple IP addresses to existing virtual machines access web server


We have Azure Virtual Machine (VM) has one network interface (NIC) attached to it one NIC and have one or more static public IP associated it.

Reasons for Attaching Multiple static Public IPS

Problem with the second IP we cont access the IIS server in Azure Virtual Machine (VM)

How to attach the second IP to access the IIS in VM?


Solution

  • To connect and sign in to a VM you created with multiple private IP addresses. You must manually add all the private IP addresses (including the primary) that you added to the VM. You can get the detailed steps here.

    Main steps:

    1. Type ncpa.cpl in the CMD to pen the Network connections window and add the following values manually. enter image description here
    2. Add all the private IP addresses to that VM Advanced TCP/IP settings. enter image description here
    3. Save it then restart your Azure VM, reestablish a RDP connection, then you can see the valid private IP addresses in the ipconfig/all. enter image description here

    Then, you should access your websites via the secondary public IP address.