Deleted Storage Account cannot be redeployed because the name is already in use

Joe Farmer 0 Reputation points
2026-05-05T15:34:40.97+00:00

I have deleted a storage account in my deployment manually after a pipeline cleanup left it behind, despite having cleaned up the other storage accounts in that resource group.

I now cannot redeploy that environment because of a "name already exists" error for the manually deleted storage account. How do i get rid of this?

Azure Storage
Azure Storage

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


1 answer

Sort by: Most helpful
  1. Vinodh247-1375 44,281 Reputation points Volunteer Moderator
    2026-05-05T15:47:40.6033333+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    This happens because Azure keeps storage account names globally unique, and after deletion the name is soft-deleted and reserved for a period (typically up to 14 days). During this retention window, you cannot reuse the same name even though the resource appears deleted.

    To fix it, you have three practical options: either wait for the retention period to expire, restore (undelete) the storage account and then delete it properly via the platform, or change the storage account name in your deployment (recommended for pipelines/CI-CD) to avoid blocking. In most real-world deployments, teams solve this by making the name dynamic (for example, adding a timestamp or suffix) so redeployments never fail due to name reuse.

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    Was 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.