An Azure service that provides a cloud content delivery network with threat protection.
Subject: Azure Front Door Premium returns 504 through Private Link to Application Gateway (APIM backend)
buyani.mhlongo
30
Reputation points
Summary I followed the Microsoft documentation to connect Azure Front Door Premium to an Application Gateway over Private Link, with API Management behind the gateway. The Private Link connection is approved, but calls through Front Door return 504. Calling the Application Gateway directly works.
Architecture Client → Azure Front Door Premium → (Private Link) → Application Gateway (v2) → API Management
What works
- A direct call to the Application Gateway’s public endpoint returns 200 with valid APIM data. I tested it in Postman, sending the host name, the APIM subscription key and the
X-Azure-FDIDheader. - Application Gateway backend health for the APIM pool is Healthy. [confirm]
What fails
- After creating the Private Link and approving the private endpoint connection on the Application Gateway, requests to the Front Door endpoint return 504.
- Front Door’s Resource Health page shows repeated origin health events: 9 on 7 Nov, 8 on 8 Nov and 4 on 9 Nov.
Configuration
Application Gateway
- Listener: basic, HTTP, port 80, frontend IP [Public / Private]
- Private Link configuration uses frontend IP: [name]
- Routing rule: [rule name], with a backend pool containing the APIM host name
- Backend settings: HTTPS 443, host name overridden with the APIM host name
- Private endpoint connection status: Approved (from Front Door)
Front Door
- Origin type: Custom
- Host name and origin host header: [value]
- Private Link: enabled, by resource ID, region [region]
- Origin group: separate from the old public one, one origin
- Route forwarding protocol: [HTTP only / HTTPS only]
- Health probe: protocol [HTTP/HTTPS], path [path], method [GET/HEAD]Summary I followed the Microsoft documentation to connect Azure Front Door Premium to an Application Gateway over Private Link, with API Management behind the gateway. The Private Link connection is approved, but calls through Front Door return 504. Calling the Application Gateway directly works. Architecture
Client → Azure Front Door Premium → (Private Link) → Application Gateway (v2) → API Management What works- A direct call to the Application Gateway’s public endpoint returns 200 with valid APIM data. I tested it in Postman, sending the host name, the APIM subscription key and the
X-Azure-FDIDheader. - Application Gateway backend health for the APIM pool is Healthy. [confirm]
- After creating the Private Link and approving the private endpoint connection on the Application Gateway, requests to the Front Door endpoint return 504.
- Front Door’s Resource Health page shows repeated origin health events: 9 on 7 Nov, 8 on 8 Nov and 4 on 9 Nov.
- Listener: basic, HTTP, port 80, frontend IP [Public / Private]
- Private Link configuration uses frontend IP: [name]
- Routing rule: [rule name], with a backend pool containing the APIM host name
- Backend settings: HTTPS 443, host name overridden with the APIM host name
- Private endpoint connection status: Approved (from Front Door)
- Origin type: Custom
- Host name and origin host header: [value]
- Private Link: enabled, by resource ID, region [region]
- Origin group: separate from the old public one, one origin
- Route forwarding protocol: [HTTP only / HTTPS only]
- Health probe: protocol [HTTP/HTTPS], path [path], method [GET/HEAD]
- A direct call to the Application Gateway’s public endpoint returns 200 with valid APIM data. I tested it in Postman, sending the host name, the APIM subscription key and the
Please help me figure this out.
Azure Front Door
Azure Front Door
Sign in to answer