Share via

I am trying to recreate resources in my customer's subscription that I deleted from this subscription, and I keep getting name in use errors.

Bill Yosmanovich 20 Reputation points Microsoft Employee
2026-04-28T17:00:09+00:00

I deployed an environment in my demo subscription to prove out scripting, IaC. Once the environment met our needs, I deleted all the resources so that I could deploy the same environment in my customer's subscription.

Several resources including storage accounts and web apps are failing to deploy as Azure reports these resources already exist. Is there a way to permanently delete them? Is there a timeout window where Azure purges them?

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

0 comments No comments

Answer accepted by question author

  1. Vallepu Venkateswarlu 9,325 Reputation points Microsoft External Staff Moderator
    2026-04-28T18:15:50.7633333+00:00

    Hi Bill Yosmanovich,

    Welcome to Microsoft Q&A Platform

    As discussed, The backend team has now released the storage account name from our side and validated the same by testing it in the North Central US region. The name is currently available and functioning as expected.

    App Service (Web Apps)

    • Web App names (which form the *.azurewebsites.net hostname) are also unique across Azure.
    • Unlike storage accounts, Azure holds onto a deleted Web App’s name for 30 days by design. This helps prevent accidental takeover of recently deleted apps.
    • There’s no way to accelerate that 30-day retention; you’ll either need to pick a new name or wait until the reservation period lapses.

    Please210246-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alex Burlachenko 20,825 Reputation points MVP Volunteer Moderator
    2026-04-30T07:43:13.7166667+00:00

    Bill Yosmanovich hi & thx for join me here at Q&A portal,

    yes there is a purge/retention window, sometimes support is needed, safest fix is unique names... this is normal Azure name behavior, not ur IaC failing. some resource names are globally unique, like storage accounts and App Service hostnames, so after delete the name can stay reserved for a while due to soft-delete, DNS cleanup, or anti-hijack protection. storage accounts especially can keep the name blocked after deletion, and web apps can also hold hostname metadata briefly. first check if the deleted resource is recoverable/soft-deleted in the original subscription, if yes purge it from there. if it was deleted from another tenant/sub and u dont have access anymore, u may need Microsoft support to release the name. practical fix is use a unique suffix per customer/environment in ur IaC, because reusing exact global names across subscriptions is fragile.

    rgds, Alex

    &

    if my answer helps pls accept it.
    

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

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