This guide will walk you through the process of creating a new Azure Storage account using the Azure portal, Azure CLI, and Azure PowerShell.
The Azure portal offers a user-friendly graphical interface for managing Azure resources.
Open your web browser and navigate to https://portal.azure.com/. Sign in with your Azure account credentials.
In the Azure portal, search for "Storage accounts" in the search bar at the top and select it from the results.
Click the "Create" button on the Storage accounts page.
On the "Create a storage account" page, fill in the following details on the Basics tab:
mystorageaccount.blob.core.windows.net). It must be between 3 and 24 characters and can contain only lowercase letters and numbers.Navigate to the Advanced tab to configure options like:
For most basic use cases, the default advanced settings are sufficient.
Click the "Review + create" button. Azure will validate your configuration. Once validation passes, click "Create" to deploy your storage account.
The Azure Command-Line Interface (CLI) is a powerful tool for managing Azure resources from your terminal.
To create a storage account, use the following command:
az storage account create \
--name \
--resource-group \
--location \
--sku Standard_LRS \
--kind StorageV2
Replace the placeholders:
<storage_account_name>: Your desired unique storage account name.<resource_group_name>: The name of your resource group.<azure_region>: The Azure region (e.g., eastus, westeurope).You can find a list of available locations with az account list-locations -o table.
Azure PowerShell provides a robust scripting environment for managing Azure services.
To create a storage account, use the following cmdlets:
# Define variables
$storageAccountName = ""
$resourceGroupName = ""
$location = ""
$skuName = "Standard_LRS" # Or Standard_GRS, Premium_LRS, etc.
$kind = "StorageV2" # General-purpose v2 is recommended
# Create the resource group if it doesn't exist
New-AzResourceGroup -Name $resourceGroupName -Location $location -Force
# Create the storage account
New-AzStorageAccount `
-Name $storageAccountName `
-ResourceGroupName $resourceGroupName `
-Location $location `
-SkuName $skuName `
-Kind $kind `
-EnableHttpsTrafficOnly $true
Replace the placeholders with your specific details.