The BlockBlobStorage account kind lets you create block blobs with premium performance characteristics. This type of storage account is optimized for workloads with high transactions rates or that require very fast access times. This article shows how to create a BlockBlobStorage account by using the Azure portal, the Azure CLI, or Azure PowerShell.
This how-to article requires the Azure PowerShell module Az version 1.2.0 or later. Run Get-Module -ListAvailable Az to find your current version. If you need to install or upgrade, see Install Azure PowerShell module.
You can sign in to Azure and run Azure CLI commands in one of two ways:
You can run CLI commands from within the Azure portal, in Azure Cloud Shell.
You can install the CLI and run CLI commands locally.
Use Azure Cloud Shell
Azure Cloud Shell is a free Bash shell that you can run directly within the Azure portal. The Azure CLI is pre-installed and configured to use with your account. Click the Cloud Shell button on the menu in the upper-right section of the Azure portal:
The button launches an interactive shell that you can use to run the steps outlined in this how-to article:
Install the CLI locally
You can also install and use the Azure CLI locally. This how-to article requires that you are running the Azure CLI version 2.0.46 or later. Run az --version to find the version. If you need to install or upgrade, see Install the Azure CLI.
To create a BlockBlobStorage account in the Azure portal, follow these steps:
In the Azure portal, select All services > the Storage category > Storage accounts.
Under Storage accounts, select Add.
In the Subscription field, select the subscription in which to create the storage account.
In the Resource group field, select an existing resource group or select Create new, and enter a name for the new resource group.
In the Storage account name field, enter a name for the account. Note the following guidelines:
The name must be unique across Azure.
The name must be between three and 24 characters long.
The name can include only numbers and lowercase letters.
In the Location field, select a location for the storage account, or use the default location.
For the rest of the settings, configure the following:
Field
Value
Performance
Select Premium.
Account kind
Select BlockBlobStorage.
Replication
Leave the default setting of Locally-redundant storage (LRS).
Choose the Advanced tab.
If you want to optimize your storage account for data analytics, then set Hierarchical namespace to Enabled. Otherwise, leave this option set to its default value. Enabling this setting with your BlockBlobStorage account gives you the premium tier for Data Lake Storage. To learn more about Data Lake Storage, see Introduction to Azure Data Lake Storage Gen2.
Select Review + create to review the storage account settings.
Select Create.
Note
This article has been updated to use the Azure Az PowerShell module. The Az PowerShell module is
the recommended PowerShell module for interacting with Azure. To get started with the Az
PowerShell module, see Install Azure PowerShell. To learn how
to migrate to the Az PowerShell module, see
Migrate Azure PowerShell from AzureRM to Az.
Open an elevated Windows PowerShell session (Run as administrator).
Run the following command to make sure the latest version of the Az PowerShell module is installed.
Install-Module -Name Az -AllowClobber
Open a new PowerShell console and sign in with your Azure account.
If you want to optimize your storage account for data analytics, then add -EnableHierarchicalNamespace $True to the command. Enabling this setting with your BlockBlobStorage account gives you the premium tier for Data Lake Storage. To learn more about Data Lake Storage, see Introduction to Azure Data Lake Storage Gen2.
To create a block blob account by using the Azure CLI, you must first install Azure CLI v. 2.0.46 or a later version. Run az --version to find the version. If you need to install or upgrade, see Install the Azure CLI.
Sign in to your Azure subscription.
az login
If needed, create a new resource group. Replace the values in brackets (including the brackets), and run the following command.
az group create \
--name "<new_resource_group_name>" \
--location "<location>"
Create the BlockBlobStorage account. Replace the values in brackets (including the brackets), and run the following command.
If you want to optimize your storage account for data analytics, then add --hierarchical-namespace true to the command. Enabling this setting with your BlockBlobStorage account gives you the premium tier for Data Lake Storage. To learn more about Data Lake Storage, see Introduction to Azure Data Lake Storage Gen2.