Not able to delete a custom domain in azure front door
Asked Answered
R

2

1

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

Ravine answered 28/4, 2021 at 18:53 Comment(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?Cortie
C
2

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.

Coenobite answered 5/5, 2021 at 13:9 Comment(0)
T
3

In the meantime they changed the namespace to Microsoft.Cdn

az feature register --namespace Microsoft.Cdn --name BypassCnameCheckForCustomDomainDeletion
Taste answered 6/3, 2023 at 13:14 Comment(1)
In other words, this answer is valid if you are using cdn rather than frontdoor - Thanks ! :)Waterlog
C
2

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.

Coenobite answered 5/5, 2021 at 13:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.