Azure APIM | AppGW | Health Probe

Abhay Chandramouli 966 Reputation points
2024-04-17T02:37:19.49+00:00

Hi

I have an Azure APIM connected to an Azure AppGW.

Is it possible to check Azure APIM health ?

We found health probes on AppGW.. Does that check APIM health as well ? or only AppGW ?

If not how to check APIM Health using probes ?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,758 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
960 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Lee 85 Reputation points Microsoft Employee
    2024-04-17T03:13:38.8133333+00:00

    Hi @Abhay Chandramouli

    Are you placing APIM behind AppGw and using it as the backend devices for AppGw? If so, AppGw uses Http(s) for backend health probe. You need to configure APIM to response to Http(s) request from AppGw. You can refer to this link about how to configure health probe on AppGw:

    https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-probe-overview

    Hope it answers your question.

    Best regards,

    0 comments No comments

  2. JananiRamesh-MSFT 21,246 Reputation points
    2024-04-17T04:06:57.8266667+00:00

    @Abhay Chandramouli Thanks for reaching out. To check the health of Azure APIM service you can use the health probes feature of Azure AppGW.

    When you configure health probes for AppGW, it sends HTTP requests to the backend pool members to check their health. If the backend pool member responds with a 200 OK status code, it is considered healthy. If the backend pool member responds with a non-200 status code, it is considered unhealthy.

    To check the health of APIM using probes, you need to add the APIM endpoints to the backend pool of the AppGW. Then, you can configure the health probes to send HTTP requests to the APIM endpoints to check their health.

    To configure health probes for APIM:

    Add the APIM endpoints to the backend pool of the AppGW. You can do this by creating a backend pool and adding the APIM endpoints as backend targets.

    Configure the health probes for the backend pool. You can configure the health probes to send HTTP requests to the APIM endpoints to check their health. You can specify the HTTP method, path, and status code for the health probe.

    Monitor the health of the APIM endpoints using the AppGW health probes. You can view the health status of the backend pool members in the AppGW backend health status page.

    Note that the health probes feature of AppGW only checks the health of the backend pool members. It does not check the health of the APIM service itself. If you want to check the health of the APIM service, you can use the Azure Monitor service to monitor the APIM service and its component.

    refer this blog for more information: https://techcommunity.microsoft.com/t5/azure-paas-blog/integrating-api-management-with-app-gateway-v2/ba-p/1241650

    do let me know incase of further queries, I would be happy to assist you.

    0 comments No comments