From a289206aadda491ab13b2809ad4975347d2d4df2 Mon Sep 17 00:00:00 2001 From: williexu Date: Wed, 27 Jun 2018 11:46:43 -0700 Subject: [PATCH] added examples and new features --- src/storage-preview/README.md | 56 +++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/src/storage-preview/README.md b/src/storage-preview/README.md index 1f224bbde81..b9fb48ac4d4 100644 --- a/src/storage-preview/README.md +++ b/src/storage-preview/README.md @@ -10,9 +10,61 @@ az extension add --name storage-preview ### Included Features **OAuth:** Allow use of login credentials for authorization of storage operations: [more info](https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-azure-active-directory) +*Examples:* +``` +az storage container list \ + --account-name wilxstoragev2 \ + --auth-mode login +``` -**WORM(Write-Once-Read-Many):** +**Immutable Storage-WORM(Write-Once-Read-Many):** Manage immutability storage with Azure blobs: [more info](https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-immutable-storage) +*Examples:* +``` +az storage container immutability-policy create \ + --account-name accountName \ + --resource-group groupName \ + --container-name containerName \ + --period 2 + +az storage container immutability-policy lock \ + --account-name accountName \ + --resource-group groupName \ + --if-match "\"12345678abcdefg\"" + +az storage container legal-hold set \ + --account-name accountName \ + --resource-group groupName \ + --tags tag1 tag2 +``` **Management Policy:** -Manage data policy rules associated with a storage account: [more info](https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts) \ No newline at end of file +Manage data policy rules associated with a storage account: [more info](https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts) +*Examples:* +``` +az storage account management-policy create \ + --account-name accountName \ + --resource-group groupName \ + --policy @{path} +``` + +**Static Website:** +Manage static website configurations. +*Examples:* +``` +az storage blob service-properties update \ + --account-name accountName \ + --static-website \ + --404-document error.html \ + --index-document index.html +``` + +**Hierarchical Namespace:** +Enable the blob service to exhibit filesystem semantics. +*Examples:* +``` +az storage account create \ + --name accountName \ + --resource-group groupName \ + --hierarchical-namespace +``` \ No newline at end of file