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

krishna572 876 Reputation points

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

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

2nd VM Instance with -

  • 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 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 (, 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


    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.



    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful