Skip to content

Commit 3a8750f

Browse files
authored
Merge pull request Azure#4751 from wastoresh/preview
Update Help of Set-AzureStorageBlobContent for -Properties usage
2 parents 8395506 + 6073138 commit 3a8750f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Storage/Commands.Storage/help/Set-AzureStorageBlobContent.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ The first command creates a hash table that contains metadata for a blob, and st
8787
The second command uploads the file that is named ContosoPlanning to the container named ContosoUploads.
8888
The blob includes the metadata stored in $Metadata, and has PremiumPageBlobTier as P10.
8989

90+
### Example 6: Upload a file to blob with specified blob properties
91+
```
92+
PS C:\> Set-AzureStorageBlobContent -File "ContosoPlanning" -Container "ContosoUploads" -Properties @{"ContentType" = "image/jpeg"; "ContentMD5" = "i727sP7HigloQDsqadNLHw=="}
93+
```
94+
95+
This command uploads the file that is named ContosoPlanning to the container named ContosoUploads with specified blob properties.
96+
9097
## PARAMETERS
9198

9299
### -Blob
@@ -301,7 +308,8 @@ Accept wildcard characters: False
301308
```
302309
303310
### -Properties
304-
Specifies properties for the uploaded blob.
311+
Specifies properties for the uploaded blob.
312+
The supported properties are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType.
305313
306314
```yaml
307315
Type: Hashtable

0 commit comments

Comments
 (0)