Skip to content

Commit 44760f1

Browse files
authored
Merge pull request #113927 from normesta/normesta-reg-updates-5
Updating commands with a note
2 parents a074738 + 75de269 commit 44760f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ This example assumes that you're running commands from Azure Cloud Shell session
157157
az storage blob upload-batch -s <source-path> -d \$web --account-name <storage-account-name>
158158
```
159159

160+
> [!NOTE]
161+
> If the browser prompts users users to download the file instead of rendering the contents, you can append `--content-type 'text/html; charset=utf-8'` to the command.
162+
160163
* Replace the `<storage-account-name>` placeholder value with the name of your storage account.
161164

162165
* Replace the `<source-path>` placeholder with a path to the location of the files that you want to upload.
@@ -178,6 +181,9 @@ set-AzStorageblobcontent -File "<path-to-file>" `
178181
-Context $ctx
179182
```
180183

184+
> [!NOTE]
185+
> If the browser prompts users users to download the file instead of rendering the contents, you can append `-Properties @{ ContentType = "text/html; charset=utf-8";}` to the command.
186+
181187
* Replace the `<path-to-file>` placeholder value with the fully qualified path to the file that you want to upload (For example: `C:\temp\index.html`).
182188

183189
* Replace the `<blob-name>` placeholder value with the name that you want to give the resulting blob (For example: `index.html`).

0 commit comments

Comments
 (0)