"The app name is not available" error when transferring web app between tenants

Peter 5 Reputation points
2023-11-13T12:38:04.86+00:00

I want to transfer a specific web app from a subscription under tenant A to a subscription under tenant B. However, when I try to recreate the app in tenant B, I receive an error message: "the Site Name "" failed the availability check: Hostname '' already exists. Please select a different name." I can recreate the web app under tenant A, but not under tenant B. It seems like tenant/subscription A is still reserving the app name. Is there a way to release or transfer the name so that I can use it for the web app in tenant/subscription B?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ben Gimblett 4,560 Reputation points Microsoft Employee
    2023-11-13T13:46:12.9233333+00:00

    Hey Peter - thanks for your question

    An App service resource (and this includes variants built on App service such as Azure functions) must have a globally unique name - this is because the name you give will be a subdomain of the Microsoft owned DNS http://<app-name>.azurewebsites.net
    REF
    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb

    If you already removed the App there may be a small time to wait until it becomes available again (one of my support colleagues who monitor this forum may be able to add more)

    In general it's more flexible to assign and use a custom [DNS] name so you do not have a direct dependency on the default name.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.