Create a storage account
An Azure storage account provides a unique namespace in the cloud to store and access your data objects in Azure Storage. A storage account contains any blobs, files, queues, tables, and disks that you create under that account.
To get started with Azure Storage, you first need to create a new storage account. You can create an Azure storage account using the Azure portal, Azure PowerShell, or Azure CLI. This quickstart shows how to use each of these options to create your new storage account.
If you don't have an Azure subscription, create a free account before you begin.
Log in to Azure
Create a resource group
An Azure resource group is a logical container into which Azure resources are deployed and managed. For more information on resource groups, see Azure Resource Manager overview.
To create a resource group in the Azure portal, follow these steps:
- In the Azure portal, expand the menu on the left side to open the menu of services, and choose Resource Groups.
- Click the Add button to add a new resource group.
- Enter a name for the new resource group.
- Select the subscription in which to create the new resource group.
- Choose the location for the resource group.
- Click the Create button.
Create a general-purpose storage account
A general-purpose storage account provides access to all of the Azure Storage services: blobs, files, queues, and tables. A general-purpose storage account can be created in either a standard or a premium tier. The examples in this article show how to create a general-purpose storage account in the standard tier (the default).
Azure Storage offers two types of general-purpose storage accounts:
- General-purpose v2 accounts
- General-purpose v1 accounts.
It's recommended that you create new storage accounts as general-purpose v2 accounts, to take advantage of newer features available to those accounts.
For more information about storage account types, see Azure Storage account options.
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.
To create a general-purpose v2 storage account in the Azure portal, follow these steps:
- In the Azure portal, expand the menu on the left side to open the menu of services, and choose All services. Then, scroll down to Storage, and choose Storage accounts. On the Storage Accounts window that appears, choose Add.
- Enter a name for your storage account.
- Set the Account kind field to StorageV2 (general-purpose v2).
- Leave the Replication field set to Locally-redundant storage (LRS). Alternately, you can chooose Zone-redundant storage (ZRS Preview), Geo-redundant storage (GRS), or Read-access geo-redundant storage (RA-GRS).
- Leave these fields set to their defaults: Deployment model, Performance, Secure transfer required.
- Choose the subscription in which you want to create the storage account.
- In the Resource group section, select Use existing, then choose the resource group you created in the previous section.
- Choose the location for your new storage account.
- Click Create to create the storage account.
Zone-redundant storage is currently in preview, and is available only in the following locations:
- US East 2
- US Central
- France Central (This region is currently in preview. See Microsoft Azure preview with Azure Availability Zones now open in France to request access.)
For more information about the different types of replication available, see Storage replication options.
Clean up resources
If you wish to clean up the resources created by this quickstart, you can simply delete the resource group. Deleting the resource group also deletes the associated storage account, and any other resources associated with the resource group.
To remove a resource group using the Azure portal:
- In the Azure portal, expand the menu on the left side to open the menu of services, and choose Resource Groups to display the list of your resource groups.
- Locate the resource group to delete, and right-click the More button (...) on the right side of the listing.
- Select Delete resource group, and confirm.
In this quick start, you've created a general-purpose standard storage account. To learn how to upload and download blobs to and from your storage account, continue to the Blob storage quickstart.