21
votes

We have a load balanced set in Azure for our web application, which load balances port 80 and 443 between two VMs. We have used the default tcp probe. Is there a way to get the current status of the probe for the load balancer from Azure?

I know I could just check each individual machines and do a probe myself, but I want to know if we could see what Azure sees for each machine.

3
Did you find a solution to this? Seems like incredibly basic and obvious functionality, but I'm having trouble finding it.John Hargrove
Nope. No luck there!madaboutcode
Sucks :-( Was hoping adding the probe to my dashboard would indicate status, and maybe it is but I can't even tellSimon_Weaver
This is a very simple yet needed feature which azure should consider adding. Especially will help with debugging problems.Zapnologica
3 years later, is there any sign of this feature?Andy

3 Answers

2
votes

Well as of 2018-06-05 this feature is not available in the Azure Portal. Today you have to configure "Diagnostic Logs" for the Load Balancer. If you choose the "Storage Account" option a JSON file is created with records like below

        {
         "time": "2018-06-05T08:50:04.2266987Z",
         "systemId": "XXXXXXXX-XXXX-XXXX-XXXX-d81b04ac33df",
         "category": "LoadBalancerProbeHealthStatus",
         "resourceId": "/SUBSCRIPTIONS/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX/RESOURCEGROUPS/TEST-INT/PROVIDERS/MICROSOFT.NETWORK/LOADBALANCERS/TEST-LB",
         "operationName": "LoadBalancerProbeHealthStatus",
         "properties": {"publicIpAddress":"XXX.XXX.XXX.XXX","port":8080,"totalDipCount":2,"dipDownCount":0,"healthPercentage":100.000000}
    }
    ,
    {
         "time": "2018-06-05T08:50:09.2415410Z",
         "systemId": "XXXXXXXX-XXXX-XXXX-XXXX-d81b04ac33df",
         "category": "LoadBalancerProbeHealthStatus",
         "resourceId": "/SUBSCRIPTIONS/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX/RESOURCEGROUPS/TEST-INT/PROVIDERS/MICROSOFT.NETWORK/LOADBALANCERS/TEST-LB",
         "operationName": "LoadBalancerProbeHealthStatus",
         "properties": {"publicIpAddress":"XXX.XXX.XXX.XXX","port":8080,"totalDipCount":2,"dipDownCount":1,"healthPercentage":50.000000}
    }

"Log Analytics" suggested by Eric is not mandatory but can be used to analyze these LB logs.

1
votes

you could use 'Log Analytics' to see current status for health probe. Below has more details and step-by-step.

https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-monitor-log

1
votes

you can check https://docs.microsoft.com/en-us/rest/api/load-balancer/loadbalancerprobes, click on GET and then Try it. It will need you to login with your Azure credentials and put the LB name, RG and Probe on LB which you want to check. fill the details and it will give you the response code if the probes are healthy or not.

Similarly you can use https://docs.microsoft.com/en-us/rest/api/load-balancer/loadbalancers/get to get all the details of a particular LB.