Create a storage account
This article has recently been updated to use commands from the new Azure PowerShell Az module. This module is the new PowerShell module for Azure, compatible with PowerShell versions 5.x and 6. AzureRM will continue to get critical bugfix updates, but new features will be in the Az module only.
- To learn more about the Az module and continued support for the AzureRM module, see Introducing the new Azure PowerShell Az module.
- The Az module is already available on Cloud Shell, with AzureRM compatibility automatically enabled. For instructions on installing the Az module, see Install Azure PowerShell.
- To enable the AzureRM compatibility commands, run
Enable-AzureRmAliasafter installation. For more on compatibility, see Migrate from Azure PowerShell AzureRM to Az.
If you don't have an Azure subscription, create a free account before you begin.
Log in to Azure
Create a storage account
Now you are ready to create your storage account.
Every storage account must belong to an Azure resource group. A resource group is a logical container for grouping your Azure services. When you create a storage account, you have the option to either create a new resource group, or use an existing resource group. This quickstart shows how to create a new resource group.
A general-purpose v2 storage account provides access to all of the Azure Storage services: blobs, files, queues, tables, and disks. The quickstart creates a general-purpose v2 storage account, but the steps to create any type of storage account are similar.
To create a general-purpose v2 storage account in the Azure portal, follow these steps:
- In the Azure portal, select All services. In the list of resources, type Storage Accounts. As you begin typing, the list filters based on your input. Select Storage Accounts.
- On the Storage Accounts window that appears, choose Add.
- Select the subscription in which to create the storage account.
Under the Resource group field, select Create new. Enter a name for your new resource group, as shown in the following image.
Next, enter a name for your storage account. The name you choose must be unique across Azure. The name also must be between 3 and 24 characters in length, and can include numbers and lowercase letters only.
- Select a location for your storage account, or use the default location.
Leave these fields set to their default values:
Field Value Deployment model Resource Manager Performance Standard Account kind StorageV2 (general-purpose v2) Replication Locally redundant storage (LRS) Access tier Hot
Select Review + Create to review your storage account settings and create the account.
- Select Create.
For more information about types of storage accounts and other storage account settings, see Azure storage account overview. For more information on resource groups, see Azure Resource Manager overview.
For more information about available replication options, 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 v2 standard storage account. To learn how to upload and download blobs to and from your storage account, continue to the Blob storage quickstart.