question

DnyaneshwarSurywanshi-3200 avatar image
0 Votes"
DnyaneshwarSurywanshi-3200 asked ·

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

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]


[1]: /answers/storage/attachments/47986-lbpublicip.png

azure-load-balancer
lbpublicip.png (12.2 KiB)
· 5
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DnyaneshwarSurywanshi-3200
Just checking in to see if the below answers helped. If this answers your query, do click “Accept Answer” and Up-Vote for the same. And, if you have any further query do let us know.


Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

Want a reminder to come back and check responses? Here is how to subscribe to a notification.


0 Votes 0 ·

Let us know if anything required.

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 Votes 0 ·

To follow-up, Please let us know if you have further query on this.
Please don’t forget to Accept the answer

0 Votes 0 ·

To follow-up, Please let us know if you have further query on this.

0 Votes 0 ·

To follow-up, Please let us know if you have further query on this.
Please don’t forget to Accept the answer

0 Votes 0 ·

1 Answer

learn2skills avatar image
0 Votes"
learn2skills answered ·

@DnyaneshwarSurywanshi-3200

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.







image.png (27.8 KiB)
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.