如何为 Azure 存储 blob 静态网站启用 Azure CDN?

How to enable Azure CDN for Azure storage blob static website?

在 Azure 存储上启用静态网站后,我已将 index.html 部署到 $web blob 容器。 https://<name>.<zone>.web.core.windows.net 工作正常。

要添加支持 HTTPS 的自定义域,recommended that we use Azure CDN to access the blobs. On the linked page 启用它,页面显示

During preview of static websites support in Azure Storage, select "custom origin" from the "origin type" drop down menu to add your storage web endpoint. In Azure Portal, you will need to do this from your CDN Profile instead of directly in your storage account.

所以我选择 Custom Origin 作为源类型,并将 <name>.<zone>.web.core.windows.net 作为源主机名。

但是,尝试访问 https://<cdnendpointname>.azureedge.net/ 会将我转到 404 Not Found 页面。

看起来是传播问题。 CDN 端点在 30 分钟后开始正常工作。