Hi @Lucas Bouvy,
Thank you for reaching out to the Microsoft Q&A forum.
From your description, it appears that you have migrated from Azure CDN (Classic) to Azure Front Door Standard/Premium, and now you're encountering 404 errors when attempting to automate tasks using the Front Door (Classic) APIs. Let me explain why this is happening and how to resolve it.
Azure Front Door Standard and Premium use a different resource provider namespace of Microsoft.Cdn, while Azure Front Door (classic) uses Microsoft.Network.
You migrated from Azure CDN (Classic) to Azure Front Door Standard/Premium. Post-migration, your Front Door resources appear under the Microsoft.Cdn/profiles
namespace with "kind": "frontdoor"
, not under Microsoft.Network/frontDoors
as in classic Front Door. This causes 404 errors when calling classic Front Door APIs because the resource provider and API endpoints differ.
Key Points:
Resource Provider:
Classic Front Door: Microsoft.Network/frontDoors
Front Door Standard/Premium: Microsoft.Cdn/profiles
with kind=frontdoor
API Differences:
- Classic Front Door APIs (e.g.,
/frontDoors/{name}
) are incompatible with Standard/Premium profiles. - Use the Azure CDN (Microsoft.Cdn) REST API for Standard/Premium. Example to validate a custom domain:
POST /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}/validateCustomDomain?api-version=2025-04-15
Custom Domains:
- In Standard/Premium, custom domains are direct children of profiles:
/profiles/{profileName}/customDomains
- In classic CDN, custom domains were nested under endpoints:
/profiles/{profileName}/endpoints/{endpointName}/customDomains
Actionable Steps:
- Update automation scripts and API calls to target
Microsoft.Cdn/profiles
endpoints with the latest API version (2025-04-15
). - Replace all classic Front Door API calls with their equivalent Standard/Premium CDN API counterparts (
afdEndpoints
,customDomains
, etc.). - Consult the latest Azure Front Door Standard/Premium REST API documentation for updated resource paths and capabilities.
This differentiation is due to architectural changes; Front Door Standard/Premium is built on the Azure CDN platform, hence the change in resource provider and API surface.
Reference: Azure Front Door tier migration | Microsoft Learn
Kindly let us know if the above helps or if you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.