Skip to content

Commit ba9bb5d

Browse files
authored
Merge pull request #115266 from normesta/normesta-static-websites
Adding a note about secondary regions
2 parents 48db300 + 3284866 commit ba9bb5d

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,22 +190,20 @@ set-AzStorageblobcontent -File "<path-to-file>" `
190190

191191
---
192192

193-
## Find the website URL by using the Azure portal
193+
<a id="portal-find-url" />
194+
195+
## Find the website URL
194196

195197
You can view the pages of your site from a browser by using the public URL of the website.
196198

197199
### [Portal](#tab/azure-portal)
198200

199-
<a id="portal-find-url" />
200-
201201
In the pane that appears beside the account overview page of your storage account, select **Static Website**. The URL of your site appears in the **Primary endpoint** field.
202202

203203
![Azure Storage static websites metrics metric](./media/storage-blob-static-website/storage-blob-static-website-url.png)
204204

205205
### [Azure CLI](#tab/azure-cli)
206206

207-
<a id="cli-find-url" />
208-
209207
Find the public URL of your static website by using the following command:
210208

211209
```azurecli-interactive
@@ -218,8 +216,6 @@ az storage account show -n <storage-account-name> -g <resource-group-name> --que
218216

219217
### [PowerShell](#tab/azure-powershell)
220218

221-
<a id="powershell-find-url" />
222-
223219
Find the public URL of your static website by using by using the following command:
224220

225221
```powershell

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: storage
66
ms.topic: conceptual
77
ms.author: normesta
88
ms.reviewer: dineshm
9-
ms.date: 05/29/2019
9+
ms.date: 05/14/2020
1010
ms.subservice: blobs
1111
---
1212

@@ -45,24 +45,24 @@ You can use any of these tools to upload content to the **$web** container:
4545
4646
## Viewing content
4747

48-
Users can view site content from a browser by using the public URL of the website. You can find the URL by using the Azure portal, Azure CLI, or PowerShell. Use this table as a guide.
48+
Users can view site content from a browser by using the public URL of the website. You can find the URL by using the Azure portal, Azure CLI, or PowerShell. See [Find the website URL](storage-blob-static-website-how-to.md#portal-find-url).
4949

50-
|Tool| Guidance |
51-
|----|----|
52-
|**Azure portal** | [Find the website URL by using the Azure portal](storage-blob-static-website-how-to.md#portal-find-url) |
53-
|**Azure CLI** | [Find the website URL by using the Azure CLI](storage-blob-static-website-how-to.md#cli-find-url) |
54-
|**Azure PowerShell module** | [Find the website URL by using PowerShell](storage-blob-static-website-how-to.md#powershell-find-url) |
50+
If the server returns a 404 error, and you have not specified an error document when you enabled the website, then a default 404 page is returned to the user.
51+
52+
> [!NOTE]
53+
> [CORS](https://docs.microsoft.com/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) is not supported with static website.
54+
55+
### Regional codes
5556

5657
The URL of your site contains a regional code. For example the URL `https://contosoblobaccount.z22.web.core.windows.net/` contains regional code `z22`.
5758

5859
While that code must remain in the URL, it is only for internal use, and you won't have to use that code in any other way.
5960

6061
The index document that you specify when you enable static website hosting, appears when users open the site and don't specify a specific file (For example: `https://contosoblobaccount.z22.web.core.windows.net`).
6162

62-
If the server returns a 404 error, and you have not specified an error document when you enabled the website, then a default 404 page is returned to the user.
63+
### Secondary endpoints
6364

64-
> [!NOTE]
65-
> [CORS](https://docs.microsoft.com/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) is not supported with static website.
65+
If you set up [redundancy in a secondary region](../common/storage-redundancy.md#redundancy-in-a-secondary-region), you can also access website content by using a secondary endpoint. Because data is replicated to secondary regions asynchronously, the files that are available at the secondary endpoint aren't always in sync with the files that are available on the primary endpoint.
6666

6767
## Impact of the setting the public access level of the web container
6868

0 commit comments

Comments
 (0)