Hi Thomas Samuel,
Welcome to Microsoft Q&A, thanks for posting your query.
The reason you can't be able to reuse the name of the deleted azure storage accounts is because azure requires each storage account have to be unique name worldwide. Even after you delete an account, the name is existing for certain time period before it become available.
The issue could be due to 2 reasons:
- The account has been created with same name again.
- The account deletion is still in progress at the backend or probably stuck as a result when trying to create account with same name, it lands into exception.
When naming your storage account, keep these rules in mind:
- Storage account names must be between 3 and 24 characters in length and may contain numbers and lowercase letters only.
- Your storage account name must be unique within Azure. No two storage accounts can have the same name.
If you try to deploy a new storage account with the same name as a storage account that already exists in Azure. The existing storage account name might be in your subscription or tenant, or anywhere across Azure. Storage account names must be globally unique across Azure.
Code=StorageAccountAlreadyTaken
Message=The storage account named storageckrexph7isnoc is already taken.
You can refer this article:
https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-storage-account-name?tabs=bicep
You can go through the similar threads:
https://learn.microsoft.com/en-us/answers/questions/1657246/urgent-reuse-azure-storage-account-name-after-dele
https://learn.microsoft.com/en-us/answers/questions/1030714/i-have-deleted-the-storage-account-i-cant-create-s
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.