az-storage-container
Manage Azure Blob Storage containers
TLDR
Create a container
SYNOPSIS
az storage container subcommand [options]
DESCRIPTION
az storage container manages blob storage containers in Azure Storage accounts. Containers provide a grouping of blobs similar to directories in a file system.
Containers can have different access levels: private (default), blob (anonymous read for blobs), or container (anonymous read for container and blobs). All blobs must reside in a container.
PARAMETERS
-n, --name value
Name of the container--account-name value
Storage account name--account-key value
Storage account key--public-access value
Public access level: off, blob, container--fail-on-exist
Fail if the container already exists--permissions value
SAS permissions: (a)dd, (c)reate, (d)elete, (l)ist, (r)ead, (w)rite--expiry value
SAS token expiration datetime (UTC)
SUBCOMMANDS
Container Lifecycle
create, delete, list, exists, show, restoreAccess Control
set-permission, show-permission, generate-sasMetadata
metadata show, metadata updateLeases
lease acquire, lease break, lease release, lease renew, lease changePolicies
policy create, policy delete, policy list, policy show, policy updateCompliance
immutability-policy create, immutability-policy delete, legal-hold set, legal-hold clear
CAVEATS
Container names must be 3-63 characters, lowercase letters, numbers, and hyphens only. Deleting a container deletes all contained blobs. Soft-delete policies allow recovery within the retention period. Immutability policies and legal holds prevent deletion for compliance purposes.
SEE ALSO
az-storage(1), az-storage-blob(1), az-storage-account(1)
