setting up health check for azure function

Yang Chowmun 411 Reputation points
2021-08-20T15:21:22.107+00:00

I am trying to setup a health check for my azure function.

I saw from this post https://learn.microsoft.com/en-us/answers/questions/143425/app-service-health-check-alert.html, it is mentioning setup a service a health endpoint on /health.

May I know what are the steps required to create health check for azure function and where should I get the 'Path' to check for unhealthy instances?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,833 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,333 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 20,431 Reputation points
    2021-08-23T09:32:01.617+00:00

    Hi @Yang Chowmun ,

    Welcome to Microsoft Q&A!

    To create health check, please follow the steps as mentioned in the article - Enable Health Check.
    Regarding the 'Path', it could simply be a http trigger function which returns HTTP status code 200. You could also have a dedicated api as the Path which, when invoked, would perform checks to ensure that dependent services are reachable and responding back OR have some logic to ensure that the function is performing as expected.
    Please refer to the video here (skip to 11:28 for guidelines and overview) for more details.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful