INTRODUCTION
Public website is a crucial tool for businesses in today's digital environment to present their brand, spread information, and interact with their audience. A solid and organized storage system is the foundation of any successful website. This article explores the value of storage for open websites, factors to consider when selecting a storage solution, and implementation best practices.
The Role of Storage on a Public Website
- Hosting Website Files
- Database Management
- Content Delivery
- Scalability for Traffic Spikes
- Data Security and Backup
Procedure on how to create storage for a public website
Step 1: Create a storage account with high availability.
- Create a storage account to support the public website
- In the portal, search for and select Storage accounts.
- Select + Create.
- 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.
- Select Review and then Create.
- Wait for the storage account to deploy, and then select Go to resource.
This storage requires high availability if there’s a regional outage.
So we take the steps 2 below
- In the storage account, in the Data management section, select the Redundancy blade.
- Ensure Read-access Geo-redundant storage is selected.
- Review the primary and secondary location information.
Task: Information on the public website should be accessible without requiring customers to login.
Step 3
- In the storage account, in the Settings section, select the Configuration blade
- Ensure the Allow blob anonymous access setting is Enabled
- Be sure to Save your changes
Create a blob storage container with anonymous read access
Step 1: The public website has various images and documents. Create a blob storage container for the content.
- In your storage account, in the Data storage section, select the Containers blade.
Select + Container.
Ensure the Name of the container is public.
Select Create.
Task: Customers should be able to view the images without being authenticated. Configure anonymous read access for the public container blobs.
Steps:
- Select your public container.
- On the Overview blade, select Change access level.
- Ensure the Public access level is Blob (anonymous read access for blobs only).
- Select OK.
Task: Configure soft delete
It’s important that the website documents can be restored if they’re deleted. Configure blob soft delete for 21 days.
Step:
- Go to the Overview blade of the storage account.
- On the Properties page, locate the Blob service section.
- Select the Blob soft delete setting.
- Ensure the Enable soft delete for blobs is checked.
- Change the Keep deleted blobs for (in days setting is 21.
- Notice you can also Enable soft delete for containers.
- Don’t forget to Save your changes.
Task: It’s important to keep track of the different website product document versions
Step:
- Go to the Overview blade of the storage account.
- In the Properties section, locate the Blob service section.
- Select the Versioning setting.
- Ensure the Enable versioning for the blobs checkbox is checked.
- Notice your options to keep all versions or delete versions after.
- Don’t forget to Save your changes.
Conclusion
A well-thought-out storage solution is critical for the success of any public website. Organizations that prioritize performance can provide a dependable and compelling online presence. Businesses may ensure that their websites match the needs of today's digital-first environment by planning ahead of time and following best practices.
Top comments (0)