File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ You can enable static website hosting by using the [Azure Command-Line Interface
67
67
This example assumes that you're running commands from Azure Cloud Shell session.
68
68
69
69
``` 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'
71
71
```
72
72
73
73
* 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.
152
152
``` powershell
153
153
# upload a file
154
154
set-AzStorageblobcontent -File "<path-to-file>" `
155
+ -Properties @{ ContentType = "text/html; charset=utf-8";} `
155
156
-Container `$web `
156
157
-Blob "<blob-name>" `
157
158
-Context $ctx
You can’t perform that action at this time.
0 commit comments