How to get public IP address name from load balancer Frontend IP configuration using Microsoft Azure Management Network Fluent API ?

Dnyaneshwar Surywanshi 156 Reputation points
2020-12-14T16:38:05.91+00:00

I want to get public IP address name from Load balancer Frontend IP configuration .
Below is my code but its giving me Frontend IP configuration name but i want attached public ip address name .

In attached image i marked public name .

IAzure _azureClient = await GetAzureClient(requestObject);
var azureLoadBalancersInfo = await _azureClient.LoadBalancers.GetByIdAsync(id);

            if (azureLoadBalancersInfo != null)  
            {  
                var azureFrontends = azureLoadBalancersInfo.Frontends.Values;  
                foreach (var azureFrontend in azureFrontends)  
                {  
                    azureFrontEndList.Add(azureFrontend.Name);  
                      
                }  
            }![47986-lbpublicip.png][1]  
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
450 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,466 Reputation points MVP
    2020-12-23T05:36:07.337+00:00

    @Dnyaneshwar Surywanshi

    You can find public IP address name from Azure portal- Frontend IP configuration blade.

    Screenshot below for your reference.

    50682-image.png

    ----------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    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.