0

I would like to know how to create health checks for some Azure services? Is this possible? I thought of creating time-triggered Azure functions that would test the end-to-end connectivity of for example my Azure storage, Azure map, and Event Hub but it would fail if suddenly my Azure functions would stop working. I would like to have some kind of Cachethq, but for all the Azure services that I use for my application. Is there a best practice for this?

Kind Regards,

PrayingMantis
  • 150
  • 2
  • 13

1 Answers1

2

Normally you would have an endpoint that checks any relevant subsytem for errors. This could be a public available /health endpoint. Some frameworks like Asp.Net Core has built-in support for health checks. An http triggered Azure function like you propose could also do the trick.

Then you need something like a watchdog that calls the health endpoint at a given interal. In Azure you can use an availability test. If you want you can create alers based on this availability and create dashboards that show the status over a given period.

If you are hosting your app using Azure Web App you can use the built-in health system as described here

If you have a load balancer or gateway in front of your app you can use the /health endpoint for health probe endpoints of those balancers/gateways.

Peter Bons
  • 26,826
  • 4
  • 50
  • 74