Health checks for azure function apps in .net core 5.0

DevBuster007 186 Reputation points
2022-03-07T18:46:02.353+00:00

For .net core apps we have health check nuget package which we can utilize for out of the box solution.
Based on my research looks like this option cannot work for function apps.
Can you please let me know how can i implement health check path in azure function app in .net 5.0?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2022-03-11T05:33:02.617+00:00

    @DevBuster007 ,

    Thanks for posting this question in Q&A.

    As per the nuget package's documentation, HealthChecks packages does not include Azure functions and app services. However, Azure functions provides out of the box healthcheck feature that you can utilize. Please note that, this feature is only available for functions running on dedicated app service plan and Elastic premium plan.

    Healthcheck feature: https://learn.microsoft.com/en-us/azure/app-service/monitor-instances-health-check

    182135-image.png

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.