We are in the process of setting up a static custom domain website being hosted from an Azure storage account.
Previous step in Setting up a custom domain website being hosted from an Azure storage account:
A custom domain for accessing blob data in an Azure storage account can be mapped to either the blob storage endpoint (<your-storage-account-name>.blob.core.windows.net) or the web endpoint (<your-storage-account-name>.zone.web.core.windows.net) that is generated when the static websites feature of the storage account is activated. We are going to setup a custom domain name for the web endpoint of a storage account. The process is the same for the blob storage contents using the blob storage endpoint.
1. In our DNS provider, we setup a new CName record for a custom domain name (demo.alvarnet.com) that points to the Azure storage account’s web endpoint (drsitebackups.z19.web.core.windows.net):
2. Add a custom domain to the Azure storage account, navigate in the Azure Portal to the Storage Account > Blob service > Custom Domain > Enter the domain name > Save
3. Verify both the storage account’s web endpoint URL and the new custom domain’s URL in a browser to see that the static website’s landing page resolves correctly:
4. Note that the custom domain is using http while the blob’s web endpoint is https. Since Azure Storage does not yet support HTTPS with custom domains, it is necessary to use Azure CDN to be able to deliver the blob’s website assets over HTTPS.
Continuing Steps to Setting up a custom domain website being hosted from an Azure storage account: