Force delete App Service, to reuse azure domain

Marcel Croes (DutchWorkz BV) 56 Reputation points
2023-06-19T18:42:54.1733333+00:00

Hi, i need to use this domain in Subscription A.

I've created it for testing in Subscription B. I don't have the option to transfer in to Sub A. (subscription doesn't show in the list)

I want to just delete it completely so i can just re-create it. it's very frustrating.

Things i tried:

Remove-AzResource -ResourceId $deletedWebApp.ResourceId -Force

I get an error

Remove-AzResource: UnsupportedResourceOperation : The resource type 'deletedSites' does not support this operation.

CorrelationId: 90f71985-84cc-485b-8994-a187c9858cd8

I then restore it, with az webapp deleted restore,

then delete it with -Force but didn't help, it's just in the deleted list.

Can someone internally just purge it for me?

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-06-20T06:26:54.6+00:00

    @Marcel Croes (DutchWorkz BV) Thanks for reaching here!

    This is due to new feature App Service recently (14th Nov 2022) 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. No additional changes or configuration are needed by the customer to establish a name reservation.

    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.

    Note that the length of cooldown period is determined by the quota id of the subscription that previously owned the reservation. If your quota ID is enterprise or CSP its around 180 days but for others its around 7 days.

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

    Resolution:

    Option 1: 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.

    Hope this helps.

    0 comments No comments

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.