Hello EnterpriseArchitect
If the DNS records are already removed but Azure still blocks deletion, you can try registering a feature flag:
az feature register --namespace Microsoft.Cdn --name BypassCnameCheckForCustomDomainDeletion
Make sure you're using Microsoft.Cdn
(not Microsoft.Network
) as the namespace.
After registering, wait for the feature to be enabled (you can check with az feature show
) and then retry the deletion.
I hope this has been helpful!
If the above is unclear or you are unsure about something, please add a comment below. Please don’t forget to close the thread by clicking "Accept the answer" and "Yes" wherever the information provided helps you, as this can be beneficial to other community members.