Storage account creation failure using bicep template

Varma 1,015 Reputation points

I am seeing following error: Please suggest

User's image

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,668 questions
{count} votes

Accepted answer
  1. Marcin Policht 9,270 Reputation points MVP

    You need to specify a different name for your storage account. This name must be globally unique - the one you provided is already in us

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.



    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 18,352 Reputation points Microsoft Employee

    @Varma As documented here, your storage account name must be unique within Azure. No two storage accounts can have the same name.

    Explained further in this thread, Storage account must be unique across all subscriptions globally, not just yours. The reason for that is that the name becomes part of the URL, e.g., Since the URL needs to be resolved to a single account, there is no way to have two accounts with the same name.

    You can check the name availability using the REST API as explained here.


    0 comments No comments