How do I re-create a Web App Service with the same name of a deleted Web App Service on a different subscription than the original subscription?

Khozema Lodhi 30 Reputation points
2023-09-14T23:50:44.55+00:00
  1. Previously, I established a Web App Service under the name X within subscription A and deployed it through DevOps pipelines and Bicep templates. Following successful testing of the automatic deployment of a web application, I sought to proceed with the deployment of the same application, retaining the name X, but this time within a different subscription B (client's subscription in which it was supposed to be deployed actually). I am well aware that the URL must be globally unique, hence I removed the web app from subscription A first.
  2. Subsequently, I proceed with the same deployment methodology in subscription B, utilizing the name X for my web application. Regrettably, this approach did not yield the expected results, as I consistently encountered the following error code:

"The website with the name X already exists."

I looked up on Microsoft threads online and found that there is a Name Reservation policy under which the app service name retains in a specific cooling period for that subscription.

References to the threads:
https://learn.microsoft.com/en-us/answers/questions/1185443/how-do-i-re-create-a-web-app-service-with-the-same
https://learn.microsoft.com/en-us/answers/questions/1182550/how-to-permanently-delete-purge-app-service-in-azu

I would like Microsoft to waive off this cooling period for these specific App Service Names and release them, So that I can deploy them in Client's Subscription.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,675 questions
0 comments No comments
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 21,346 Reputation points
    2023-09-15T05:32:22.1833333+00:00

    @Anonymous Further to add:

    As its suggested in previous thread that- For Web app this is due to new feature App Service recently rolled out a Name Reservation feature to protect customers from the threat of subdomain takeovers.

    This new built-in feature creates a name reservation for web application names.

    The name reservation for a given resource name will exist from the moment the resource is created and for a lengthy time period after the resource has been deleted (a cooldown period).

    This means that during the cooldown period after resource deletion, other subscriptions outside of the original creating Azure AD tenant will not be able to create a web application using the same name.

    However, once the cooldown period has ended, the name reservation will be released, and any subscription will then be able to create a web application with that given name.

    See: Name Reservation on App Service for Web Apps and App Service Environment (ASE)

    Resolution:

    Option 1: If possible you can wait for the cooling-off period to expire. (unless it was previously used by an internal subscription)

    Option 2: Please reach out to us by sending an email with subject line “Attn:Sneha |thread title” to AzCommunity[at]microsoft[dot]com referencing this thread for help on this.

    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. TP 90,466 Reputation points
    2023-09-15T00:15:47.9566667+00:00

    Hi

    Please create a new support request in the subscription that the name was first used. A support engineer can clear the name reservation so that the name can be deployed into a different subscription before cooldown period expires.

    Create an Azure support request

    https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

    Please click Accept Answer if the above was useful.

    Thanks.

    -TP


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.