I Lost Connection to Azure VM after i add the IP addresses

William Rowe 0 Reputation points
2023-11-02T11:44:12.88+00:00
I have successfully configured four IP addresses following the instructions outlined in the documentation here:

https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-network-multiple-ip-addresses-portal

However, upon completing the step 'Add IP addresses to a VM operating system', I lost connection to the Virtual Machine entirely. As a result, I was unable to establish an RDP connection either from my local machine or through the Azure Portal. This issue raised some significant troubleshooting efforts on my part until I managed to revert the changes. (I was little worry)

Currently, the four IP addresses have been created, but we are only able to RDP into the machine using the primary IP, which has already been configured in the system. I have verified this by running the command 'ipconfig /all', which provided the following details:

Windows IP Configuration

   Host Name . . . . . . . . . . . . : myHostName
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : 

Ethernet adapter Ethernet 6:

   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter #4
   Physical Address. . . . . . . . . : 
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : (Preferred)
   IPv4 Address. . . . . . . . . . . : Azure Primary Private IP (Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, November 1, 2023 8:18:29 AM
   Lease Expires . . . . . . . . . . : Saturday, December 8, 2159 3:58:05 PM
   Default Gateway . . . . . . . . . : My Default gateway
   DHCP Server . . . . . . . . . . . : 168.63.129.16
   DHCPv6 IAID . . . . . . . . . . . : 184558152
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-D1-80-62-60-45-BD-80-4D-25
   DNS Servers . . . . . . . . . . . : 168.63.129.16
   NetBIOS over Tcpip. . . . . . . . : Enabled
I am stuck as we need to configure multiple IPs for hosting multiple web apps in a single Azure VM

please, advise
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,989 questions
Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
359 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 111.1K Reputation points MVP
    2023-11-02T11:57:49.11+00:00

    Hi @William Rowe ,

    while adding the additional 4 IP addresses to the Azure VM did you add/create 4 Public IP Addresses (each ipconfig with a Public IP)?

    ip

    Depending on your network environment you might need to modify the Network Security Group(s) (NSG) associated with the subnet or/and the VM NIC.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.