An Azure service that provides a cloud content delivery network with threat protection.
Hello Ricardo Romão
I understand that you're in a bit of a bind with those custom domains attached to your Azure Front Door instance, and I get how frustrating that can be.
- Unfortunately, there isn't a direct way to forcefully detach custom domains via the Azure Portal or API if you don't manage the DNS records for those domains. Usually, domains need to be detached by removing the CNAME entries in the domain's DNS settings.
- If the domains are still associated with your Front Door but cannot be directly removed due to DNS issues, you might want to verify if you can use either PowerShell or Azure CLI to delete the Front Door, which might bypass those bindings if they’re not actively validating.
- Additionally, when deleting, check the activity logs to find information about the activity if it fails.
- Using Azure PowerShell:
Remove-AzFrontDoor -Name "YourFrontDoorName" -ResourceGroupName "YourResourceGroupName" - Using Azure CLI:
az network front-door delete --name YourFrontDoorName --resource-group YourResourceGroupName
Check the below reference link:
https://learn.microsoft.com/en-us/cli/azure/network/front-door?view=azure-cli-latest&wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider
Microsoft has introduced this breaking change (https://github.com/hashicorp/terraform-provider-azurerm/issues/11231). But it seems like it can be disabled by registering feature flag:
az feature register --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion
And let me know the outcome once you perform the action.
Hope the above answer helps! Please let us know do you have any further queries.
Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.