Static Website

For websites that are lightning fast, bullet proof, low cost and incredibly scalable, enable the “Static Publisher.”

What is it?

The static publisher is a static website, where all your web pages, when published, are stored in BLOB storage. This is in-expensive, ultra-fast, scalable and secure way to host your website.

While in this mode, when you publish a web page it stores it as HTML in BLOB storage. This storage account has a read-only, static website.  It is very fast, can handle incredible amount of web traffic, and is easily regionally distributable.

When to use it?

If your website is all, or mostly static content, where no back-end processing is necessary, a static website is perfect.

Here are some situations when not to use it:

  • You want to authenticate users before they access to your website.
  • You want back-end processing like forms submission.

How to set it up?

Turning on the static website is easy.  In the “Editor” App Service, set the environment variable:

 CosmosStaticWebPages to true.

Next, setup the static website of your storage account with your domain name. See the Azure documentation on how to configure the static website.

In the “Static Website” configuration, add “index.html” to the “index document name.”

Lastly, once you have the static website configured, you can remove the dynamic publisher App Service.