How to Know the Which IP-Port belongs to Which Instance of the Virtual Machine Scale Set

krishna572 876 Reputation points
2023-01-26T12:33:27.3+00:00

I have an Azure Windows VMSS with 2 instances in running state with a load balancer:

  • LB Rule - Port 80
  • Inbound NAT Rule - Frontend Port 50000, Service Port 3389

My VMSS Public IP is 20.1.13.195

I'm connecting with 1st VM instance using RDP Service - 20.1.13.195:50000

2nd VM Instance with - 20.1.13.195:50001.

  • VMSS Name is: TestWinVMSS01
  • Instance1 Name: TestWinVMSS01_0
  • Instance2 Name: TestWinVMSS01_1

I'm able to connect with 1st VMSS Instances using (its Public IP : Front end Port) in RDP Connection Service.

I also tested with the IP 20.1.13.195:50002 which is connection failed because there is no 3rd instance. This is as expected.

My Doubt is When I'm Connecting with the Instance IP (20.1.13.195:50001), Can I Confirm it is connecting to 2nd VM Instance. If yes, how?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,804 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 66,821 Reputation points
    2023-01-26T14:33:15.5133333+00:00

    Hi,

    After you sign in to the VM using port 50001, check computername to see if it is 2nd VM Instance. Several methods:

    Right-click on Start -- Run, cmd.exe At prompt type: set comp and press enter. You should see COMPUTERNAME=TestWinVMSS01_1

    Right-click on Start -- System You should see Device name TestWinVMSS01_1

    Right-click on Start -- Run, sysdm.cpl This will show you full computer name

    If the above was helpful please click Accept Answer.

    Thanks.

    -TP

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful