Latest

Unable to Delete Front door in Azure showing error :Cannot delete frontend endpoint Please remove the DNS CNAME records and try again"

Error :

Cannot delete frontend endpoint "xxx.yyyy.xxxx.com" because it is still directly or indirectly (using "afdverify" prefix) CNAMEd to front door "xxxx-frontdoor.azurefd.net". Please remove the DNS CNAME records and try again.













Solution 

Let's disable the CNAME check temporarily for a subscription via Azure CLI

Open Command Prompt:
  • az  login
  • az account show
  • az feature list -o table --query "[?contains(name, 'Microsoft.Network/BypassCnameCheckForCustomDomainDeletion')].{Name:name,State:properties.state}"
  • az feature register --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion
  • az feature unregister --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion

After executing these commands, Delete the front door and it works

No comments