Publish The Static Website Using Azure Storage

Brass Contributor

Microsoft introduced Static website hosting is a feature from storage account enabled on the Static website.

 

To enable static website hosting, select the name of your default file, and then optionally provide a path to a custom 404 page. If a blob storage container named $web doesn’t already exist in the account, one is created for you. Add the files of your site to this container.

 

Creating a new Azure Storage Account and provide a name and under the Account -Kind make sure that you select General Purpose StorageV2.

clipboard_image_0.jpeg

After it creates the resource then go to Settings and select Static website. Select Enabled for Static Website.

 

Under the Index Document Name type index.html and under Error document path type 404.html.

 

clipboard_image_1.jpeg

Click Save, you’ll see there is a $web folder that you can click on to upload your files. I simply dropped a single index.html file with some text to test. You’ll also want to jot down the Primary endpoint location as you’ll test your site with that URL.

 

clipboard_image_2.jpeg

Upload HTML files $web folder.

clipboard_image_3.jpeg

 

clipboard_image_4.jpeg

Once you’ve uploaded your file to $web then go to your browser and paste in the URL provided in the previous step.

 

clipboard_image_5.jpeg

0 Replies