Configuring Azure App Gateway v2 Backend Setting and Probe with ADFS VM server

Roy Kim (Azure MVP) 191 Reputation points MVP
2025-05-22T17:47:55.7833333+00:00

I have a test environment with ADFS server in an azure VNET. I have deployed App Gateway v2 to same VNET.

I have other VMs that work well with app gateway v2 so backend health for those is good.

For getting App Gateway with ADFS working I have configured:

Backend Setting:

https 443,
"Backend server’s certificate is issued by a well-known CA": Yes. (Root cert is AAA certificate services by my research is trusted and well-known).
User's image

Health Probe: HTTPS, Host:<vm name>, Path:"/adfs/ls/idpinitiatedsignon" User's image

Backend Health Error:
Cannot connect to backend server. Check whether any NSG/UDR/Firewall is blocking access to the server. Check if application is running on correct port. To learn more visit - https://aka.ms/servernotreachable.

I tried VM connectivity troubleshooter to adfds VM. Ensure NSG is open and non blocking. No Firewall and UDR. I am pretty sure network traffic from within VM is fine. Remember I can get backend health no issues with other VMs.

I have tried many possible combinations of settings with probe, backend settings, listener, etc. Any suggestions to work with ADFS?
I have tried uploading Root Cert .cer file (in Backend Setting) but I don't know if that mattered. How to check if this is needed?

Can ADFS work with backend port http 80?
Where to troubleshoot for detailed errors?

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

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 10,540 Reputation points Microsoft External Staff Moderator
    2025-05-26T16:28:35.3566667+00:00

    Hello @Roy Kim (Azure MVP)

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution.

    Please click "Accept" the answer as original posters help the community find answers faster by identifying the correct answer.

    Issue: Configuring Azure App Gateway v2 Backend Setting and Probe with ADFS VM server

     

    Resolution: I have resolved by setting the FQDN at the health probe. That is subdomain.domain.com. This FQDN is a DNS record in a public dns zone.


    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Accepted answer


Your answer

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