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
