Skip to content

Commit 490e8ab

Browse files
committed
Fixing a bug
1 parent 5e6be88 commit 490e8ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/storage/blobs/storage-blob-static-website-how-to.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ You can enable static website hosting by using the [Azure Command-Line Interface
6767
This example assumes that you're running commands from Azure Cloud Shell session.
6868

6969
```azurecli-interactive
70-
az storage blob upload-batch -s <source-path> -d \$web --account-name <storage-account-name>
70+
az storage blob upload-batch -s <source-path> -d \$web --account-name <storage-account-name> --content-type 'text/html; charset=utf-8'
7171
```
7272

7373
* Replace the `<storage-account-name>` placeholder value with the name of your storage account.
@@ -152,6 +152,7 @@ You can enable static website hosting by using the Azure PowerShell module.
152152
```powershell
153153
# upload a file
154154
set-AzStorageblobcontent -File "<path-to-file>" `
155+
-Properties @{ ContentType = "text/html; charset=utf-8";} `
155156
-Container `$web `
156157
-Blob "<blob-name>" `
157158
-Context $ctx

0 commit comments

Comments
 (0)