0
votes

I have two Azure accounts. With the first account I created an App Service (ASP.NET Core Web App on URL: [something].azurewebsites.net). Then I decided to move it to my different account, so I deleted completely - App Service, App Service Plan and also the whole Resource Group.

When I am trying to create a new App Service on the second account (with exactly the same URL [something].azurewebsites.net), I am getting the error: The host name [something].azurewebsites.net is already assigned to another Azure website. I am 100% sure that it was deleted from the first account.

ExtendedCode": "54003","MessageTemplate": The host name {0} is already assigned to another Azure website.","Parameters": ["[something].azurewebsites.net"],"Code": "Conflict"
2
maybe someone else took it between your deletion and your attempt to create in the second one.Thiago Custodio
Or Microsoft binds it to the old account for x days, or even forever, for security reasons. Otherwise shady people could put up fake replacement sites for phishing and malware infection.Dave S
I would accept that but at least it should be mentioned somewhere in the doc.michal.kohut
but answering your question, the proper way is by support ticket, otherwise there's no other way to keep the domain without a risk of someone else take the domain while you're moving to another subscription.Thiago Custodio
According to David Makogan (Works at Microsoft), host names are not held after the resource is deleted: stackoverflow.com/questions/39647651/…. I'd give it another try a few hours later and see if you are able to grab it. Please report back - I'm curious about it.Rob Reagan

2 Answers

0
votes

this worked for me without any issues. created a webapp on one account, deleted it after and created on another account.

0
votes

As you have already created CNAME for the website with your old subscription, that needs to be de-associate to use it again with your new subscription.