Create an Azure Data Lake Storage Gen2 account

This guide walks you through the steps to create a new Azure Data Lake Storage Gen2 account using the Azure portal.

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

Steps to Create a Data Lake Storage Gen2 Account

1. Navigate to the Azure portal: Open your web browser and go to portal.azure.com. Sign in with your Azure account.
2. Create a new resource:
  • In the Azure portal, click on the + Create a resource button, located in the top-left corner.
  • In the search bar, type "Storage account" and select Storage account from the results.
  • Click the Create button.
3. Configure the storage account:

On the "Create storage account" page, you'll need to fill in several details:

  • Subscription: Select the Azure subscription you want to use.
  • Resource group: Choose an existing resource group or create a new one by clicking "Create new". A resource group is a logical container for your Azure resources.
  • Storage account name: Enter a globally unique name for your storage account. This name must be between 3 and 24 characters and can only contain lowercase letters and numbers.
  • Region: Select the geographical location where you want your storage account to be deployed.
  • Performance: Choose "Standard" for most scenarios. "Premium" offers higher performance for specific workloads.
  • Redundancy: Select a data redundancy option based on your availability requirements (e.g., Locally-redundant storage (LRS), Geo-redundant storage (GRS)).
4. Enable Hierarchical Namespace (Data Lake Storage Gen2):
  • Go to the Advanced tab at the top of the "Create storage account" page.
  • Under the "Blob storage" section, find Hierarchical namespace and set it to Enabled. This is the key setting that enables Data Lake Storage Gen2 capabilities.
5. Review and create:
  • Click on the Review + create button.
  • The portal will validate your configuration. Once validation passes, review the details and click the Create button.

Deployment may take a few minutes. Once complete, you will have an Azure Data Lake Storage Gen2 account ready to use.

Next Steps

Example Azure CLI command to create an account with Hierarchical Namespace enabled:

az storage account create \ --name yourdatalakestorageaccountname \ --resource-group yourresourcegroup \ --location eastus \ --sku Standard_LRS \ --kind StorageV2 \ --hierarchical-namespace enabled