Create Azure Storage Account

This document guides you through the process of creating a new Azure Storage Account, a fundamental service for storing various types of data in the cloud.

Prerequisites

Before you begin, ensure you have:

  • An active Azure subscription. If you don't have one, you can sign up for a free account.
  • Permissions to create resources in your subscription.

Methods to Create a Storage Account

Azure Storage Accounts can be created using several methods:

  • Azure Portal: A user-friendly graphical interface.
  • Azure CLI: A command-line tool for managing Azure resources.
  • Azure PowerShell: A command-line shell and scripting language for task automation.
  • Azure Resource Manager (ARM) Templates or Bicep: For declarative infrastructure deployment.

We will cover the Azure Portal and Azure CLI methods here.

Creating a Storage Account via Azure Portal

  1. Sign in to the Azure portal.

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

  3. On the Storage accounts page, select Create.

  4. On the Basics tab, configure the following:

    • Subscription: Select your Azure subscription.
    • Resource group: Choose an existing resource group or create a new one by clicking Create new.
    • Storage account name: Enter a globally unique name for your storage account. Names must be 3-24 characters long and can contain numbers and lowercase letters only.
    • Region: Select the geographic region where your storage account will be hosted.
    • Performance: Choose Standard (for most general-purpose scenarios) or Premium (for high-performance scenarios).
    • Redundancy: Select a redundancy option (e.g., LRS, GRS, RA-GRS) based on your availability and durability needs.
  5. On the Advanced tab, configure options such as hierarchical namespace for Azure Data Lake Storage Gen2, secure transfer required, and access tier.

  6. Review the settings on the Review + create tab. If everything looks correct, click Create.

Tip: You can customize other settings like networking, encryption, and data protection on the respective tabs during the creation process.

Creating a Storage Account via Azure CLI

Use the following Azure CLI command to create a storage account. Replace the placeholder values with your own.


az storage account create \
    --name <your-storage-account-name> \
    --resource-group <your-resource-group-name> \
    --location <your-region> \
    --sku Standard_LRS \
    --kind StorageV2 \
    --access-tier Hot
                

Explanation of parameters:

  • --name: A globally unique name for your storage account.
  • --resource-group: The name of the resource group to create the account in.
  • --location: The Azure region for the storage account.
  • --sku: The replication strategy (e.g., Standard_LRS for locally redundant storage).
  • --kind: The type of storage account (StorageV2 is recommended for most scenarios).
  • --access-tier: The default access tier for blobs (Hot or Cool).

Next Steps

Once your storage account is created, you can start configuring it for your specific needs. Explore options for:

Create Storage Account Now