Create an Azure Storage Account
This guide walks you through the process of creating a new Azure Storage account, a fundamental step for using Azure Blob Storage.
Prerequisite: You need an Azure subscription. If you don't have one, you can create a free account before you begin.
Using the Azure Portal
The Azure portal provides a user-friendly interface for creating and managing Azure resources.
- Sign in to the Azure portal: Navigate to https://portal.azure.com/ and sign in with your Azure account credentials.
- Create a resource: In the Azure portal, select + Create a resource from the top left menu.
- Search for Storage Account: In the search bar, type "Storage account" and select Storage account from the results. Then click Create.
-
Configure the Basics tab:
- Subscription: Select the Azure subscription under which you want to create the storage account.
- Resource group: Choose an existing resource group or click Create new to create a new one. 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 long and can only contain lowercase letters and numbers.
- Region: Select the Azure region where you want to deploy your storage account. Choose a region close to your users for better performance.
- Performance: Select Standard for general-purpose v2 accounts.
- Redundancy: Choose a redundancy option based on your availability and durability requirements (e.g., Locally-redundant storage (LRS), Geo-redundant storage (GRS)).
- Configure the Advanced tab (Optional): Review and configure advanced settings such as hierarchical namespace for Azure Data Lake Storage Gen2, blob access tier defaults, and network access. For most use cases, the default settings are sufficient.
- Review + create: Click the Review + create button. Azure will validate your configuration.
- Create: Once the validation passes, click Create to provision your storage account.
It may take a few minutes for the storage account to be deployed. You'll receive a notification in the Azure portal once it's ready.
Tip: You can use Azure CLI or Azure PowerShell to automate the creation of storage accounts. Refer to the respective documentation for command-line examples.
Using Azure CLI
You can also create a storage account using the Azure Command-Line Interface (CLI).
az group create --name myResourceGroup --location eastus
az storage account create --name mystorageaccount
--resource-group myResourceGroup
--location eastus
--sku Standard_LRS
--kind StorageV2
Replace mystorageaccount
with your desired unique storage account name and adjust the resource group, location, SKU, and kind as needed.
Next Steps
Once your storage account is created, you can start uploading and managing your blobs.