General

List all storage accounts and output in a table format:

az storage account list -o table

List all storage accounts and get storage account names:

az storage account list -o json | jq -r '.[].name'

You can assign one of the account names to an env var if you’d like:

export AZURE_STORAGE_ACCOUNT=<storage account name from output>

Revision #1
Created 2023-11-10 05:53:39 UTC by Ryan
Updated 2025-02-12 01:10:52 UTC by Ryan