az-storage
Manage Azure Storage resources
TLDR
Create a storage account specifying a location
List all storage accounts in a resource group
List the access keys for a storage account
Delete a storage account
Update the minimum tls version setting for a storage account
SYNOPSIS
az storage command-group subcommand [options]
Examples:
az storage blob upload --container-name mycontainer --file mylocalfile.txt --name myblob.txt
az storage account create --name mystorageaccount --resource-group myresourcegroup --location eastus --sku Standard_LRS
PARAMETERS
account
Manages Azure Storage accounts, including creation, deletion, key management, and property updates.
blob
Manages Azure Blob Storage objects, such as uploading, downloading, copying, and deleting blobs.
container
Manages blob containers, which are logical groupings for blobs, including creation, listing, and access policy management.
file
Manages individual files within Azure File Shares, including upload, download, and deletion.
directory
Manages directories within Azure File Shares.
share
Manages Azure File Shares, which are cloud-based SMB/NFS file shares.
queue
Manages Azure Storage Queues for robust message queuing between applications.
table
Manages Azure Storage Tables, a NoSQL key-value store for structured data.
--help
Displays help information for the az storage command group or any of its subcommands.
--output
Specifies the output format (e.g., json, jsonc, tsv, table, yaml, none).
DESCRIPTION
The az storage command group within the Azure CLI provides comprehensive functionality for interacting with and managing various Azure Storage services. It allows users to control storage accounts, blob containers, individual blobs, file shares, directories, files, message queues, and NoSQL tables directly from the command line. This powerful tool is essential for automating storage operations, scripting data transfers, and managing storage infrastructure. It abstracts the complexities of the underlying REST APIs, offering a consistent and intuitive interface for common storage tasks like uploading/downloading data, managing access policies, configuring networking, and monitoring usage. As a part of the Azure CLI, it integrates seamlessly with other Azure resource management commands.
CAVEATS
The command 'az-storage' as a standalone executable does not exist. It is a command group within the Azure CLI, invoked as az storage. To use it, the Azure CLI must be installed and configured, and you must be logged into an Azure account via az login. Specific storage operations often require the `--account-name`, `--account-key`, or `--connection-string` options, or prior setup of a default storage account.
INSTALLATION AND AUTHENTICATION
Before using az storage, ensure the Azure CLI is installed on your system (available for Windows, macOS, and Linux). After installation, you must authenticate to your Azure account using the az login command, typically opening a browser for interactive login.
COMMAND STRUCTURE
Commands within az storage follow a hierarchical structure: az storage <service-type> <action> [options]. For example, az storage blob upload manages blobs by uploading them, or az storage account list manages storage accounts by listing them. Each action has its own set of specific options and arguments.
HISTORY
The az storage command group is an integral part of the Azure CLI (command-line interface), which was initially released as Azure CLI 2.0 to replace the older, Node.js-based cross-platform CLI. Since its inception, the Azure CLI, including its storage capabilities, has been continuously developed by Microsoft. It has seen numerous updates, bug fixes, and feature additions, aligning with the rapid evolution of Azure Storage services. Its design focuses on automation and scripting, making it a primary tool for DevOps and cloud administrators.