TL;DR: Is there any way to delete the default domain for an Azure web app? I want to reuse the domain name with a different app.

I need to take over the administration and start paying the bills for an Azure app that I wrote for a customer. My idea is to create a completely new web app in my own Azure account and then just change the DNS records.

The old app uses the default domain that Azure assigned to it when I created it – let's call it oldapp.azurewebsites.net. This is the URL that we communicated to all the users and that we use in integrations with other systems.

I created a new web app in my own subscription and setup the CI/CD pipeline and so on to work with the new app. However, when I had everything up and running, I wasn't able to change the domain of the old app. On the "Custom domains" blade for the app in Azure Portal there is no way to select the default domain, and the delete button is grayed out. I tried setting up a second custom domain, but even with that I couldn't delete the default domain.

I even went so far as to delete the old web app late one night, thinking that the domain name would then be free and I could grab it with the new account, but Azure has a 30-day safety period before the app is deleted completely. That's a nice feature, but I can't have a month of downtime just to move the app. I ended up undeleting the app, so now it's back in its old place.

Do you have any advice or thoughts on how I can point the Azure DNS records to the new app? Is this even a feasible plan, or should I try something completely different?

  • This is not a static web app, by the way. I found some guides for those, but they don't apply to this app. Jan 31 at 9:59

1 Answer 1


I ended up creating a copy of the web app with a different domain name. It means changing the configuration of several systems at my customer and telling all users that the URL has changed. Once all integrations use the new URL I'll just turn off the old app for a few days or weeks and delete it once I'm certain that everything works.

This time I've set up a "real" custom domain name for the web app under a domain that I own. If I need to do anything similar in the future I can just update the DNS records. I would have done this from the start if I'd known that I couldn't change or move the default domain name, so I guess I learned something in the process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.