question

AkshayChauhan-6287 avatar image
1 Vote"
AkshayChauhan-6287 asked AkshayChauhan-0487 answered

Not able to delete a custom domain in front door

I have a custom domain associated with front end in azure front door which I am not able to delete. On deleting I get error
Failed to update the Front Door 'somename'. Error: Cannot delete frontend endpoint "somedomain" because it is still CNAMEd to front door "somename.azurefd.net". Please remove the DNS CNAME records and try again. Why am I getting this error. How to resolve it?92222-tempsnip.png


azure-front-door
tempsnip.png (15.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

msrini-MSFT avatar image
1 Vote"
msrini-MSFT answered enesuenalan-6529 commented

Hi,

When you created the custom domain for the first time, you must have added a CNAME record in your registrar or in your Azure DNS which is still pointing to the Azure Front Door's FQDN. You need to first remove the CNAME which you have created. Then try to delete the AFD again.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I also do have this issue. Even though there are no CNAME records in our DNS, I still do receive this error and am unable to delete it out of our Front Door.

1 Vote 1 ·
LucasLuengo-2758 avatar image
0 Votes"
LucasLuengo-2758 answered

Me too. I think this happens when you have a wildcard subdomain.
I checked several times and there is no CNAME binded to the endpoint I'm trying to delete.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AkshayChauhan-0487 avatar image
0 Votes"
AkshayChauhan-0487 answered

Microsoft has introduced this breaking change (11231). But it seems like it can be disabled by registering feature flag:


 az feature register --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.