@Aster1234 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
When you try to list the account with given name, it is not found under your subscription but is taken by someone else and will not let you create another storage account with the same name.
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.
The storage account name is actually the subdomain name, so it must be "Globally" unique. Later you can access it through a URL like yourdomain.file.core.windows.net.
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.
For solution, refer to this article : https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-storage-account-name?tabs=bicep
If you have any additional questions or need further clarification, please let me know.
----------
Please do not forget to and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.