Answers: <p>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.</p>
  <p>This time I've set up a &quot;real&quot; 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.</p>
  
Answers: CC BY-SA 4.0
Answers: 2024-02-07T13:52:01.953Z
Answers: 2024-02-07T20:10:59.130Z
Answers: 2024-02-07T20:10:59.130Z
Answers: Rolf Staflin
Body: <p><strong>TL;DR</strong>: 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.</p>
  <p>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.</p>
  <p>The old app uses the default domain that Azure assigned to it when I created it – let's call it <code>oldapp.azurewebsites.net</code>. This is the URL that we communicated to all the users and that we use in integrations with other systems.</p>
  <p>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 &quot;Custom domains&quot; 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.</p>
  <p>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.</p>
  <p>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?</p>
  
Comments: CC BY-SA 4.0
Comments: 2024-01-31T09:59:17.790Z
Comments: This is _not_ a static web app, by the way. I found some guides for those, but they don't apply to this app.
Comments: Rolf Staflin
Tags: <azure><dns>
Title: How can I free up the Azure default domain name for use in another web app?
UserDisplayName: Rolf Staflin
ThreadText: # How can I free up the Azure default domain name for use in another web app?
  
  (Asked by: username_0 on 2024-01-28)
  
  **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?
  
  **Tags:** azure, dns
  
  > **Comments:**
  > **username_0**: This is _not_ a static web app, by the way. I found some guides for those, but they don't apply to this app.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-02-07. Score: 0
  
  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.
  
  
  ---
  
  