Share via

Backend Health shows unhealthy even with a single backend.

ChaitanyaNaykodi-MSFT 27,181 Reputation points Microsoft Employee
12 Mar 2025, 15:15

I have only one backend, configured as a hostname. I see the backend pool as unhealthy but Healthy host count in App Gw metrics is showing as 1 

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,142 questions
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 49,016 Reputation points Microsoft Employee
    12 Mar 2025, 15:19

    Hi,

    Analysis:

    • If a single FQDN BackendTarget in a single BackendPool resolves to “n” IPs, Then the total number of hosts in metrics becomes “n” i.e., Unhealthy hosts + Healthy hosts = n
    • This “n” also includes the IPV6 addresses, even though App gateway is incapable of probing this IPV6 address (at the moment)
    • Furthermore, BackendHealth section considers a backendTarget healthy only if all of these “n” IPs are reachable and working.
    • So, if there were a IPV6 in that “n” addresses, the BackendHealth would simply show as Unhealthy only

    Lab:

    I have only one backend "www.example.com "

    User's image

    But we can see there are two hosts, one healthy and another unhealthy.

    1. User's image
    2. User's image

    In my case,

    • The Healthy one is the one which resolved to IPv4
    • The Unhealthy one is the one which resolved to IPv6Analysis:
      • If a single FQDN BackendTarget in a single BackendPool resolves to “n” IPs, Then the total number of hosts in metrics becomes “n”
        i.e., Unhealthy hosts + Healthy hosts = n
      • This “n” also includes the IPV6 addresses, even though App gateway is incapable of probing this IPV6 address (at the moment)
      • Furthermore, BackendHealth section considers a backendTarget healthy only if all of these “n” IPs are reachable and working.
      • So, if there were a IPV6 in that “n” addresses, the BackendHealth would simply show as Unhealthy only
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.