liveBook · Manning

$web folder

As explained in Microsoft Azure in Action

The $web folder is the special Azure Blob Storage container whose contents are served when static website hosting is enabled for a storage account.

The $web folder is the special Azure Blob Storage container used by static website hosting. Put the site’s HTML, CSS, and JavaScript files there; otherwise Azure has nothing to serve. Static hosting serves static content only, not pages rendered by a web server. section 9.2.3 section 9.6

A minimal static website setup needs:

  • A $web folder containing the website files; Azure creates the folder if it does not already exist. section 9.2.3
  • An index document, such as index.html, for the home page. section 9.2.3
  • An error document, such as error.html, for missing pages or other errors. section 9.2.3

Enable hosting after uploading files

For a storage account named banningstorage, configure static website hosting with index.html as the home page and error.html as the error page: az storage blob service-properties update --account-name banningstorage --static-website --404-document error.html --index-document index.html section 9.2.3

How Microsoft Azure in Action covers it

How deep it goes
Defines the required folder and document files, but stops short of explaining web-server rendering or dynamic content.
Examples
Uses index.html, error.html, and the Banning Books website with Azure CLI configuration.
What it assumes
Assumes basic website files and Azure Storage familiarity while defining the special $web location from zero.
What you can do after
Operate/configure static website hosting with Azure CLI by placing site files in $web and selecting index and error documents.
How it connects
Connects Azure Blob Storage with static website hosting, HTML, CSS, and JavaScript.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microsoft Azure in Action. The section links point to the parts of the book it draws on.