CmdID

CmdID / Commands

az-storage-container

Manage blob storage containers in Azure. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Manage blob storage containers in Azure. Part of azure-cli (also known as az).

Create a container in a storage account

az storage container create --account-name storage_account_name --name container_name --public-access access_level --fail-on-existIdentify
--account-nameStorage account name. Azure CLI reference
--nameThe container name. Azure CLI reference
--public-accessSpecifies whether data in the container may be accessed publicly. Azure CLI reference
--fail-on-existThrow an exception if the container already exists. Azure CLI reference

Generate a shared access signature for the container

az storage container generate-sas --account-name storage_account_name --name container_name --permissions sas_permissions --expiry expiry_date --https-onlyIdentify
--nameThe container name. Azure CLI reference

List containers in a storage account

az storage container list --account-name storage_account_name --prefix filter_prefixIdentify
--prefixFilter the results to return only blobs whose name begins with the specified prefix. Azure CLI reference

Mark the specified container for deletion

az storage container delete --account-name storage_account_name --name container_name --fail-not-existIdentify
--nameThe container name. Azure CLI reference
--fail-not-existThrow an exception if the container does not exist. Azure CLI reference