Azure CLI reference commands for Azure Storage

The Azure Command-Line Interface (CLI) is a set of commands you use to create and manage Azure resources. It's available across many Azure services, including Azure Storage, and gives you the ability to manage Azure Storage from a command line.

The Azure CLI commands for Azure Storage are composed of two parts: a core and its extensions. Core Azure CLI commands ship as part of the CLI and are fully supported. Extensions give you access to experimental and pre-release commands. For more information about using extensions, see Use extensions with Azure CLI.

See az storage for an alphabetic list of the Azure CLI core and extension references available for the Azure Storage service. For references for each subgroup, see the tables in the following sections:

Note

You're prompted to install an extension reference on first use. Or, you can use the az extension add command to manually install an extension by name.

Azure File Sync references

The references in this table are part of the storagesync extension.

Reference Description More information
az storagesync Manage storage sync services. Deploy Azure File Sync
az storagesync registered-server Manage servers that are registered with a storage sync service.
az storagesync sync-group Manage sync groups in a storage sync service. Deploy Azure File Sync
az storagesync sync-group cloud-endpoint Manage cloud endpoints in a storage sync service sync group. Deploy Azure File Sync
az storagesync sync-group server-endpoint Manage server endpoints in a storage sync service sync group. Deploy Azure File Sync

Import/Export service references

The references in this table are part of the import-export extension.

Reference Description More information
az import-export Manage the import and export jobs for the Azure Import/Export service. Use Azure Import/Export service to import data to Azure Files
az import-export bit-locker-key List the BitLocker keys for an import or export job.
az import-export location Show location details for an import or export job. Use Azure Import/Export service to import data to Azure Files

Storage account references

Reference Description More information
az storage account Manage storage accounts. Create a storage account
az storage account blob-inventory-policy Manage the inventory policy of a storage account. Enable Azure Storage blob inventory reports
az storage account blob-service-properties Manage the properties of a storage account's Blob service. Configure object replication for block blobs
az storage account encryption-scope Manage the encryption scope for a storage account. Create and manage encryption scopes
az storage account file-service-properties Manage the properties of a storage account's Blob service. Enable soft delete on Azure file shares
az storage account keys Manage the keys of a storage account. Manage storage account access keys
az storage account management-policy Manage a storage account's management policies.
az storage account network-rule Manage network rules. Configure Azure Storage firewalls and virtual networks
az storage account or-policy Manage storage account Object Replication Policy. Configure object replication for block blobs
az storage account or-policy rule Manage the Object Replication Policy rules of a storage account. Configure object replication for block blobs
az storage account private-endpoint-connection Manage a storage account's private endpoint connection.
az storage account private-link-resource Manage a storage account's private link resources.

Storage blob references

Some references in this table are part of the storage-preview or storage-blob-preview extension.

Reference Description Extension? More information
az storage blob Manage object storage for unstructured data (blobs). Quickstart: Create, download, and list blobs with Azure CLI
az storage blob access Manage the access control properties of a blob when Hierarchical Namespace is enabled. storage-preview
az storage blob copy Manage blob copy operations. Move Azure storage blobs from the command line with the Azure CLI
az storage blob directory Manage blob directories in a storage account container. storage-preview
az storage blob directory access Manage the access control properties of a directory when Hierarchical Namespace is enabled. storage-preview
az storage blob directory metadata Manage directory metadata. storage-preview
az storage blob incremental-copy Manage blob incremental copy operations.
az storage blob lease Manage storage blob leases.
az storage blob metadata Manage blob metadata. View blob properties and metadata using Azure tools and code
az storage blob service-properties Manage storage blob service properties. Deploy a static website to blob storage
az storage blob service-properties delete-policy Manage storage blob delete-policy service properties.
az storage blob tag Manage storage blob tags. storage-blob-preview

Storage container references

Reference Description More information
az storage container Manage blob storage containers. Tutorial: Upload image data in the cloud with Azure Storage
az storage container immutability-policy Manage container immutability policies. Configure immutability policies for containers
az storage container lease Manage blob storage container leases.
az storage container legal-hold Manage container legal holds.
az storage container metadata Manage container metadata. View blob properties and metadata using azure tools and code
az storage container policy Manage container-stored access policies. Use Azure Blob storage Shared Access Signatures to restrict access to data in HDInsight

Storage file share references

Reference Description More information
az storage share Manage storage file shares. Quickstart: Create and manage Azure file shares using Azure CLI
az storage share metadata Manage the metadata of a file share.
az storage share policy Manage shared access policies of a file share.

Storage file share (SMB 3.0) references

Reference Description More information
az storage file Manage storage file shares that use the Server Message Block (SMB) 3.0 protocol. Quickstart: Create and manage Azure file shares using Azure CLI
az storage file copy Manage the file copy operations of a file share.
az storage file metadata Manage the metadata of a file share.

Storage file system references

Some references in this table are part of the storage-preview extension.

Reference Description Extension? More information
az storage fs Manage file systems in an Azure Data Lake Storage Gen2 account. Use Azure CLI to manage directories and files in Azure Data Lake Storage Gen2
az storage fs access Manage file system access and permissions for an Azure Data Lake Storage Gen2 account. Use Azure CLI to manage ACLs in Azure Data Lake Storage Gen2
az storage fs directory Manage directories in an Azure Data Lake Storage Gen2 account. Use Azure CLI to manage directories and files in Azure Data Lake Storage Gen2
az storage fs directory metadata Manage the metadata for a directory in the file system.
az storage fs file Manage files in an Azure Data Lake Storage Gen2 account. Use Azure CLI to manage directories and files in Azure Data Lake Storage Gen2
az storage fs file metadata Manage the metadata for files in the file system.
az storage fs metadata Manage the metadata for the file system.
az storage fs service-properties Manage the properties of a storage account's Azure Data Lake Storage Gen2 service. storage-preview

Storage queue references

Reference Description More information
az storage queue Manage storage queues. Choose how to authorize access to queue data with Azure CLI
az storage queue metadata Manage the metadata for a storage queue.
az storage queue policy Manage shared access policies for a storage queue.

Additional storage references

Some references in this table are part of the storage-preview extension.

Reference Description Extension? More information
az snapshot Manage point-in-time copies of managed disks, native blobs, or other snapshots. Create a snapshot using the portal or Azure CLI
az storage azcopy Manage storage operations with the AzCopy utility. storage-preview
az storage azcopy blob Manage object storage for blobs with the AzCopy utility. storage-preview Transcribe audio files
az storage container-rm Manage Azure containers using the Microsoft.Storage resource provider.
az storage cors Manage storage service Cross-Origin Resource Sharing (CORS). Enable CORS for your Azure Storage Services using the Azure CLI
az storage directory Manage file storage directories. Quickstart: Create and manage Azure file shares using Azure CLI
az storage directory metadata Manage file storage directory metadata.
az storage entity Manage table storage entities.
az storage logging Manage storage service logging information.
az storage message Manage queue storage messages.
az storage metrics Manage storage service metrics.
az storage share-rm Manage Azure file shares with the Microsoft.Storage resource provider. How to create an NFS share
az storage table Manage NoSQL key-value storage. Set up a function app in Azure Functions
az storage table policy Manage the shared access policies of a storage table.

See also