I'm struggling to find any up to date documentation on how to setup healthchecks in Azure for a .NET 6 Core function app.
The app is running in DOTNET-ISOLATED, within an app service plan (not consumption).
This documentation explains how to setup the health check part in Azure (easy enough).
But it doesn't explain anywhere, code-wise, what needs to run on the function app side. There's all sorts of health check stuff available, but it all seems to be geared towards WebApi, or there are no examples for .NET 6.
It seems daft that this is so easy to do (with a couple of one-liners) for WebApi, but not for their own function apps?
This looks simple, but appears to only work for consumption plans?
I've looked at a few articles and answers, including this one, for .NET 5, but it lacks detail and doesn't seem like an obvious translation to .NET 6?
Does anyone have an example of some working code for this? How indepth does the healthcheck need to be? Can I just write a simple function that returns 200 and point Azure to it?