Setting Up Azure Storage for a Public Website: A Step-by-Step Guide
Introduction
In Azure cloud architecture, a storage account plays a key role in hosting and protecting application data. For public-facing websites, it’s important to balance accessibility with security. Configuring features like Read-access Geo-redundant storage (RA-GRS), anonymous access, soft delete, and versioning ensures high availability, protection against accidental data loss, and resilience during regional outages.
- Create a storage account with high availability. Create a storage account to support the public website.
For resource group select new.Give your resource group a name and select OK.

Set the Storage account name to publicwebsite. Make sure the storage account name is unique by adding an identifier.

Take the defaults for other settings.
Wait for the storage account to deploy, and then select Go to resource.

- This storage requires high availability if there’s a regional outage. Additionally, enable read access to the secondary region, Learn more about storage account redundancy.
In the storage account, in the Data management section, select the Redundancy blade.

Review the primary and secondary location information.
Create a storage account to support the public website.
- Information on the public website should be accessible without requiring customers to login.
Create a blob storage container with anonymous read access
- The public website has various images and documents. Create a blob storage container for the content. Learn more about storage containers.
- Customers should be able to view the images without being authenticated. Configure anonymous read access for the public container blobs. Learn more about configuring anonymous public access.
Practice uploading files and testing access.
- For testing, upload a file to the public container. The type of file doesn’t matter. A small image or text file is a good choice.
- Ensure you are viewing your container.
Browse to files and select a file. Browse to a file of your choice.

Close the upload window, Refresh the page and ensure your file was uploaded.
- Determine the URL for your uploaded file. Open a browser and test the URL.
Paste the URL into a new browser tab.

Select your deleted file, and use the ellipses on the far right, to Undelete the file.

Refresh the container and confirm the file has been restored.
Configure blob versioning
- It’s important to keep track of the different website product document versions. Learn more about blob versioning.
As you have time experiment with restoring previous blob versions.
- Upload another version of your container file. This overwrites your existing file.
- Your previous file version is listed on Show deleted blobs page.
Conclusion
By enabling RA-GRS along with soft delete and blob versioning, you create a storage solution that is both highly available and protected from human error. While anonymous access supports public content delivery, it should be carefully managed to expose only intended assets. With these settings, your Azure Storage account is well-prepared to deliver reliable, globally accessible content.


































Top comments (1)
Welldone!