Check If Azure Storage Account Name is Taken Using Azure CLI

In this blog post, we will show you how to check if an Azure Storage account name is taken using Azure CLI.

Azure Storage is a cloud-based storage solution offered by Microsoft Azure. It provides highly scalable and secure storage for data, files, and other objects in the cloud. To create an Azure Storage account, you need to specify a unique name for the account.

Azure CLI is a command-line tool that allows you to manage Azure resources. You can use it to create, configure, and manage Azure Storage accounts. To use Azure CLI, you need to install it on your local machine and authenticate with your Azure account.

Once you have installed Azure CLI and authenticated with your Azure account, you can use the following command to check if an Azure Storage account name is available:

az storage account check-name --name <storage_account_name> --query nameAvailable

Replace <storage_account_name> with the name you want to check.

This command will return a JSON response that indicates whether the storage account name is available or not. If the name is available, the output will be:


If the name is not available, the output will be:


You can also use the --verbose option to get additional details about why a name is not available.

It’s important to note that Azure Storage account names must be unique across all Azure tenants. Therefore, it’s a good practice to use a naming convention that includes your organization’s name or some other unique identifier to ensure that your storage account name is unique.






Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.