This article will walk you through the syntax and usage of the az storage account list Azure CLI command.
Table of Contents
Az storage account list
This Azure CLI command helps you list all the storage accounts under an Azure subscription or a specified Resource Group.
Syntax
az storage account listaz storage account list -g YourResourceGroupNameExample-1
We can execute the below command to get the lists of storage account under your Azure subscription.
az storage account listAfter executing the above command, I got the expected output as shown below.
[
{
"accessTier": "Hot",
"accountMigrationInProgress": null,
"allowBlobPublicAccess": false,
"allowCrossTenantReplication": false,
"allowSharedKeyAccess": true,
"allowedCopyScope": null,
"azureFilesIdentityBasedAuthentication": null,
"blobRestoreStatus": null,
"creationTime": "2024-07-24T11:52:22.010430+00:00",
"customDomain": null,
"defaultToOAuthAuthentication": null,
"dnsEndpointType": null,
"enableExtendedGroups": null,
"enableHttpsTrafficOnly": true,
"enableNfsV3": null,
"encryption": {
"encryptionIdentity": {
"encryptionFederatedIdentityClientId": null,
"encryptionUserAssignedIdentity": null
},
"keySource": "Microsoft.Storage",
"keyVaultProperties": null,
"requireInfrastructureEncryption": null,
"services": {
"blob": {
"enabled": true,
"keyType": "Account",
"lastEnabledTime": "2024-07-24T11:52:22.619809+00:00"
},
"file": {
"enabled": true,
"keyType": "Account",
"lastEnabledTime": "2024-07-24T11:52:22.619809+00:00"
},
"queue": null,
"table": null
}
},
"extendedLocation": null,
"failoverInProgress": null,
"geoReplicationStats": null,
"id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/resourceGroups/MyNewResGrp/providers/Microsoft.Storage/storageAccounts/alazureml7822510715",
"identity": null,
"immutableStorageWithVersioning": null,
"isHnsEnabled": false,
"isLocalUserEnabled": null,
"isSftpEnabled": null,
"isSkuConversionBlocked": null,
"keyCreationTime": {
"key1": "2024-07-24T11:52:22.151056+00:00",
"key2": "2024-07-24T11:52:22.151056+00:00"
},
"keyPolicy": null,
"kind": "StorageV2",
"largeFileSharesState": "Disabled",
"lastGeoFailoverTime": null,
"location": "eastus",
"minimumTlsVersion": "TLS1_2",
"name": "alazureml7822510715",
"networkRuleSet": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"ipv6Rules": [],
"resourceAccessRules": null,
"virtualNetworkRules": []
},
"primaryEndpoints": {
"blob": "https://alazureml7822510715.blob.core.windows.net/",
"dfs": "https://alazureml7822510715.dfs.core.windows.net/",
"file": "https://alazureml7822510715.file.core.windows.net/",
"internetEndpoints": null,
"microsoftEndpoints": null,
"queue": "https://alazureml7822510715.queue.core.windows.net/",
"table": "https://alazureml7822510715.table.core.windows.net/",
"web": "https://alazureml7822510715.z13.web.core.windows.net/"
},
"primaryLocation": "eastus",
"privateEndpointConnections": [],
"provisioningState": "Succeeded",
"publicNetworkAccess": null,
"resourceGroup": "MyNewResGrp",
"routingPreference": null,
"sasPolicy": null,
"secondaryEndpoints": null,
"secondaryLocation": null,
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"statusOfPrimary": "available",
"statusOfSecondary": null,
"storageAccountSkuConversionStatus": null,
"tags": {},
"type": "Microsoft.Storage/storageAccounts"
},
{
"accessTier": "Hot",
"accountMigrationInProgress": null,
"allowBlobPublicAccess": false,
"allowCrossTenantReplication": false,
"allowSharedKeyAccess": true,
"allowedCopyScope": null,
"azureFilesIdentityBasedAuthentication": null,
"blobRestoreStatus": null,
"creationTime": "2024-11-17T14:21:07.955699+00:00",
"customDomain": null,
"defaultToOAuthAuthentication": false,
"dnsEndpointType": "Standard",
"enableExtendedGroups": null,
"enableHttpsTrafficOnly": true,
"enableNfsV3": null,
"encryption": {
"encryptionIdentity": null,
"keySource": "Microsoft.Storage",
"keyVaultProperties": null,
"requireInfrastructureEncryption": false,
"services": {
"blob": {
"enabled": true,
"keyType": "Account",
"lastEnabledTime": "2024-11-17T14:21:08.127574+00:00"
},
"file": {
"enabled": true,
"keyType": "Account",
"lastEnabledTime": "2024-11-17T14:21:08.127574+00:00"
},
"queue": null,
"table": null
}
},
"extendedLocation": null,
"failoverInProgress": null,
"geoReplicationStats": null,
"id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/resourceGroups/MyNewResGrp/providers/Microsoft.Storage/storageAccounts/azureusanew",
"identity": null,
"immutableStorageWithVersioning": null,
"isHnsEnabled": true,
"isLocalUserEnabled": null,
"isSftpEnabled": false,
"isSkuConversionBlocked": null,
"keyCreationTime": {
"key1": "2025-01-24T08:03:11.782952+00:00",
"key2": "2024-11-17T14:21:08.111950+00:00"
},
"keyPolicy": null,
"kind": "StorageV2",
"largeFileSharesState": "Enabled",
"lastGeoFailoverTime": null,
"location": "eastus",
"minimumTlsVersion": "TLS1_2",
"name": "azureusanew",
"networkRuleSet": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"ipv6Rules": [],
"resourceAccessRules": null,
"virtualNetworkRules": []
},
"primaryEndpoints": {
"blob": "https://azureusanew.blob.core.windows.net/",
"dfs": "https://azureusanew.dfs.core.windows.net/",
"file": "https://azureusanew.file.core.windows.net/",
"internetEndpoints": null,
"microsoftEndpoints": null,
"queue": "https://azureusanew.queue.core.windows.net/",
"table": "https://azureusanew.table.core.windows.net/",
"web": "https://azureusanew.z13.web.core.windows.net/"
},
"primaryLocation": "eastus",
"privateEndpointConnections": [],
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"resourceGroup": "MyNewResGrp",
"routingPreference": null,
"sasPolicy": null,
"secondaryEndpoints": {
"blob": "https://azureusanew-secondary.blob.core.windows.net/",
"dfs": "https://azureusanew-secondary.dfs.core.windows.net/",
"file": null,
"internetEndpoints": null,
"microsoftEndpoints": null,
"queue": "https://azureusanew-secondary.queue.core.windows.net/",
"table": "https://azureusanew-secondary.table.core.windows.net/",
"web": "https://azureusanew-secondary.z13.web.core.windows.net/"
},
"secondaryLocation": "westus",
"sku": {
"name": "Standard_RAGRS",
"tier": "Standard"
},
"statusOfPrimary": "available",
"statusOfSecondary": "available",
"storageAccountSkuConversionStatus": null,
"tags": {
"Apple": "ITS"
},
"type": "Microsoft.Storage/storageAccounts"
}
]You can see the same output as shown in the screenshot below.

Example-2
The below command will get you the lists of storage accounts under MyNewResGrp resource group.
az storage account list -g MyNewResGrpAfter executing the above command, I got the expected output, as shown in the screenshot shown below.

You may also like following the articles below.
- az storage account delete
- az storage account show
- Az storage account show-connection-string
- Azure Storage Account Key
- Az storage account keys renew

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
