1
votes

I have a custom domain associated with a front-end host in azure front door. I want to delete this domain association but getting a error which says "Please remove the DNS CNAME records and try again.". Why am I getting this error. Does this mean I need to remove CNAME record from my domain provider? If it is so, it will be problematic in CI/CD pipeline. Attaching screenshot of the error.

enter image description here

1
If you don't delete the CNAME record, your domain still points towards a Front Door that's no longer associated to that domain. So yes, first delete the DNS record, then remove the domain from Front Door. You state "it will be problematic in CI/CD pipeline", but removing custom domains in a CI/CD pipeline (so on a regular basis) doesn't feel like a constructive solution?rickvdbosch

1 Answers

1
votes

I've found this issue #11231 in GitHub. Looks like they have introduced this breaking change recently. But it seems like it can be disabled by registering feature flag according to comment from the issue:

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

But be aware that it's subscription level.