Skip to content

Commit 73dc701

Browse files
authored
Merge pull request Azure#9481 from wastoresh/downloadblob
[Storage] Update help of Get-AzStorageBlobContent by add an example
2 parents eed9043 + 50d89f0 commit 73dc701

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
## Upcoming Release
2121
* Change 2 parameters "-IndexDocument" and "-ErrorDocument404Path" from required to optional in cmdlet:
2222
- Enable-AzStorageStaticWebsite
23+
* Update help of Get-AzStorageBlobContent by add an example
2324
* Show more error information when cmdlet failed with StorageException
2425
* Support list or close file handles of a file share, file directory or a file
2526
- Get-AzStorageFileHandle

src/Storage/Storage.Management/help/Get-AzStorageBlobContent.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ PS C:\>Get-AzStorageContainer container* | Get-AzStorageBlobContent -Blob "cbox.
6464

6565
This example uses the asterisk wildcard character and the pipeline to find and download blob content.
6666

67+
### Example 4: Get a blob object and save it in a variable, then download blob content with the blob object
68+
```
69+
PS C:\>$blob = Get-AzStorageBlob -Container containername -Blob blobname
70+
PS C:\>Get-AzStorageBlobContent -CloudBlob $blob.ICloudBlob -Destination "C:\test"
71+
```
72+
73+
This example first get a blob object and save it in a variable, then download blob content with the blob object.
74+
6775
## PARAMETERS
6876

6977
### -AsJob

0 commit comments

Comments
 (0)