Skip to content

Commit

Permalink
added examples and new features (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
williexu authored Jun 27, 2018
1 parent cdcabd8 commit 2e87e93
Showing 1 changed file with 54 additions and 2 deletions.
56 changes: 54 additions & 2 deletions src/storage-preview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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
```

0 comments on commit 2e87e93

Please sign in to comment.