me--
me--

Reputation: 2148

Why would Application Insights report zero health on an app service when the health check is successful?

I have an application insights instance and the "Availability" graph on the Overview page is showing zero availability. However, I have two app services, both of which are configured with health check URLs, and both of which are clearly being pinged and are returning 204s:

enter image description here

It feels to me like there's some kind of disconnection between an app service health check and app insights incorporating that health check into its availability stats. What might cause this?

Upvotes: 0

Views: 813

Answers (1)

Alex
Alex

Reputation: 18526

By default, the availability tests check for status code 200, and only that. You can modify it by going to "availability" on your AppService.

https://learn.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability

HTTP response

The returned status code that is counted as a success. 200 is the code that indicates that a normal web page has been returned.

edit

status code

Upvotes: 1

Related Questions