How to check the Specific vm is part of Load balancer ?

Naveen Neerukattu 26 Reputation points
2023-03-04T06:31:05.3966667+00:00

HI ,

Currently we are having Multiple Vms and Multiple Internal Load balancers .

Now i want to check the specific vm is part of which load balancer?

From LB side , I can check the Backend pool but is there any way to check from vm point of view ?

Can anyone help on this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,019 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
506 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prrudram-MSFT 28,201 Reputation points Moderator
    2023-03-04T08:06:20.29+00:00

    Hello @Naveen Neerukattu

    Thank you for reaching out to the Microsoft Q&A platform.
    Yes, you can check the load balancer that a virtual machine is part of from the virtual machine's network interface. In the Azure portal, navigate to the virtual machine, select the network interface from networking blade and then view the load balancer that the network interface is associated with from the properties blade of network interface.

    User's image

    You also can use Azure CLI, or Azure PowerShell
    In Azure CLI, you can use the following command to view the network interface of a virtual machine:
    az network nic show --resource-group <resource-group-name> --name <nic-name>*


    In Azure PowerShell, you can use the following command to view the network interface of a virtual machine:

    Get-AzNetworkInterface -ResourceGroupName <resource-group-name> -Name <nic-name>*

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help.***

    3 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.