Unable to create storage account from portal : name already taken
Asked Answered
W

2

7

I am unable to create a storage account from Portal.

As soon as I type the name it shows error The storage account name '' is already taken.

I coudlnt find the account in Azure so it doesnt exist definitely. I want to use the same name. I can create storage account with diff name but dont want to.

Anyone knows why this error ?

Wherefore answered 31/8, 2020 at 4:40 Comment(0)
P
13

Storage account name you choose must be unique across Azure.

You can check the name availability using the REST API. Refer this document.

Edit:

As suggested by Juunas, 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. https://accountname.blob.core.windows.net. Since the URL needs to resolve to a single account, there is no way to have two accounts with the same name.

Pickerelweed answered 31/8, 2020 at 5:27 Comment(3)
It might be good to specify that it 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. https://accountname.blob.core.windows.net. Since the URL needs to resolve to a single account, there is no way to have two accounts with the same name.Venable
Yes which is why I find it strange you can't just use Get-AzStorageAccount -StorageAccountName "test" You have to specify the resource group name Get-AzStorageAccount -StorageAccountName "test" -ResourceGroupName "webservers"Lapstrake
@DavidHomer the document linked in this answer provides a URL to check the names. That URL itself requires a subscription ID, and connecting to that URL requires the account requesting this to have certain azure permissions itself. I agree with you, kinda strange indeed for getting information that one can also just query via DNS with an nslookup <desiredAccountName>.<blob|files>.core.windows.net!Pillbox
H
1

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

Hoem answered 31/8, 2020 at 6:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.