Create an Azure Storage Account

A storage account is a globally unique namespace for your Azure Storage data. Every object you store in Azure Storage has a unique URL that includes your storage account name. This article explains how to create a general-purpose v2 storage account.

Prerequisites

Before you begin, you need an Azure subscription. If you don't have one, create a free account before you begin.

Create a Storage Account using the Azure Portal

The Azure portal provides a graphical interface for creating and managing Azure resources. Follow these steps to create a storage account:

1

Sign in to the Azure portal.

2

In the Azure portal, search for and select Storage accounts.

Search for Storage Accounts
3

On the Storage accounts page, select Create.

Create Storage Account Button
4

On the Create storage account page, configure the following settings:

  • Subscription: Select your Azure subscription.
  • Resource group: Select an existing resource group or create a new one. A resource group is a logical container for your Azure resources.
  • Storage account name: Enter a globally unique name for your storage account. The name must be 3-24 characters long and can contain only lowercase letters and numbers.
  • Region: Select the Azure region where you want to create your storage account.
  • Performance: Choose Standard for general-purpose v2 accounts.
  • Redundancy: Select your desired data redundancy option (e.g., LRS, GRS). For more information, see Azure Storage redundancy.

You can explore other tabs like Networking, Advanced, and Tags to configure additional settings as needed.

Storage Account Basics Tab
5

Select Review + create to validate your settings.

6

Once the validation passes, select Create to deploy your storage account.

Validation Passed

Create a Storage Account using Azure CLI

You can also create a storage account using the Azure Command-Line Interface (CLI). Open your terminal or command prompt and run the following command:

az storage account create \ --name mystorageaccountname \ --resource-group myResourceGroup \ --location westus \ --sku Standard_LRS \ --kind StorageV2

Replace the placeholder values with your desired configuration:

Important:

Choosing the correct redundancy option is crucial for data durability and availability. Standard_LRS (Locally-redundant storage) is the most cost-effective option, while GRS (Geo-redundant storage) provides higher durability by replicating data to a secondary region.

Congratulations! You have successfully created an Azure Storage Account. You can now start uploading and managing your data.