An Azure service that provides a cloud content delivery network with threat protection.
Yes. The custom domain must also be configured directly on the Power Pages site, not only on Azure Front Door and in DNS.
Power Pages generates its authentication URLs (including redirect_uri) based on the site’s configured host name. If the site only knows about the default *.powerappsportals.com domain, it will continue to use that in the Entra ID redirect, even when requests arrive through Azure Front Door.
To fix the ExternalAuthenticationFailed and ensure redirect_uri uses the custom subdomain:
- Configure the custom domain on the Power Pages site itself (Connect/Add Custom Domain) so that the site recognizes the custom host name as valid for the portal.
- Then follow the documented pattern for Azure Front Door with Power Pages:
- Use the Power Pages default domain as the origin host name in Front Door.
- After the custom domain is added to Power Pages, update DNS so the CNAME for the custom domain points to the Azure Front Door endpoint (not directly to Power Pages).
- Configure the same custom domain on the Azure Front Door endpoint and complete domain validation / TLS.
- Confirm with
nslookupthat the custom domain’s CNAME now points to the Front Door endpoint and that browsing the custom domain shows the Power Pages site.
This sequence ensures that:
- Power Pages accepts the custom domain and sets cookies and authentication URLs for it.
- Azure Front Door fronts that custom domain and forwards traffic to the Power Pages origin.
Without adding the custom domain in Power Pages, the portal continues to use the default domain in the Entra ID redirect, which leads to the ExternalAuthenticationFailed behavior described.
References: