This is a extension for storage preview features.
Install this extension using the below CLI command
az extension add --name storage-preview
Manage data policy rules associated with a storage account: more info
Examples:
az storage account management-policy create \
--account-name accountName \
--resource-group groupName \
--policy @{path}
Manage static website configurations: more info
Examples:
az storage blob service-properties update \
--account-name accountName \
--static-website \
--404-document error.html \
--index-document index.html
Enable the blob service to exhibit filesystem semantics: more info
Examples:
az storage account create \
--name accountName \
--resource-group groupName \
--kind StorageV2 \
--hierarchical-namespace
Enable AAD integration for Azure files, which will support SMB access: more info
Examples:
az storage account create \
--name accountName \
--resource-group groupName \
--kind StorageV2
az storage account update \
--name accountName \
--resource-group groupName
Create premium blob/file storage accounts.
More info:premium blobs premium files
Examples:
az storage account create \
--name accountName \
--resource-group groupName \
--sku Premium_LRS \
--kind BlockBlobStorage
az storage account create \
--name accountName \
--resource-group groupName \
--sku Premium_LRS \
--kind FileStorage
Failover GRS/RA-GRS storage accounts from the primary cluster to the secondary cluster: more info
Examples:
az storage account show \
--name accountName \
--expand geoReplicationStats
az storage account failover \
--name accountName
[EXPERIMENTAL] Azure CLI is releasing new versions of the blob upload/download/delete commands that rely on the AzCopy tool. Users should see higher performance metrics: more info
Examples:
az storage azcopy blob delete \
-c containerName \
--account-name accountName \
-t targetBlob
az storage azcopy blob delete \
-c containerName \
--account-name accountName \
-t virtual_directory/path \
--recursive
az storage azcopy blob upload \
-c containerName \
--account-name accountName \
-s "file/path" \
-d blobName
az storage azcopy blob upload \
-c containerName \
--account-name accountName \
-s directory/path \
-d upload/path
--recursive
az storage azcopy blob download \
-c containerName \
--account-name accountName \
-s blobName \
-d file/path
az storage azcopy blob download \
-c containerName \
--account-name accountName \
-s virtual_directory/path \
-d download/path \
--recursive
az storage azcopy blob sync \
-c containerName \
--account-name accountName \
-s "file/path" \
-d blobName
az storage azcopy blob sync \
-c containerName \
--account-name accountName \
-s directory/path \
-d sync/path