Creating a High-Availability Storage Account for a Public Website
These articles are AI-generated summaries. Please check the original sources for full details.
Creating a High-Availability Storage Account for a Public Website
This guide walks through setting up a Microsoft Azure Storage Account optimized for hosting a public website. The configuration ensures high availability, public accessibility, and data resilience through features like geo-redundant storage (RA-GRS), soft delete, and blob versioning. The result is a robust environment suitable for testing, training, or live website hosting.
Key Configuration Steps
1. Create a Storage Account with Geo-Redundancy
- Action: Use Azure Portal to create a storage account named
publicwebsite(or a unique variant if needed). - Redundancy Settings:
- Select Read-access geo-redundant storage (RA-GRS).
- Ensures data remains accessible during regional outages by replicating data to a secondary region.
- Impact: Minimizes downtime and data loss risks in case of regional failures.
2. Enable Anonymous Public Access
- Configuration:
- Navigate to Settings > Configuration.
- Enable Allow blob anonymous access.
- Purpose: Allows users to access website content without authentication, ideal for public-facing sites.
- Limitation: Risks exposing sensitive data if not properly secured.
3. Create and Configure a Blob Container
- Steps:
- Create a container named
public. - Set Public access level to Blob (anonymous read access for blobs only).
- Create a container named
- Use Case: Host static website assets (e.g., images, HTML files) accessible to all users.
4. Upload and Test Files
- Process:
- Upload files (e.g., images, text) to the
publiccontainer. - Verify access by copying the file’s URL and testing in a browser.
- Upload files (e.g., images, text) to the
- Outcome: Ensures files are publicly accessible and functional.
5. Enable Soft Delete for Blob Recovery
- Setup:
- Go to Data protection > Blob service > Blob soft delete.
- Set Retention period to 21 days.
- Function: Prevents accidental deletion by allowing recovery within 21 days.
- Testing:
- Delete a file, toggle Show deleted blobs, and use Undelete to restore it.
6. Enable Blob Versioning
- Configuration:
- Navigate to Blob service > Versioning.
- Enable Versioning for blobs.
- Benefit: Maintains historical versions of files, enabling recovery from overwrites or corruption.
Conclusion
This setup ensures:
- High availability via RA-GRS redundancy.
- Public access for unauthenticated users.
- Data resilience through soft delete (21-day retention) and blob versioning.
Ideal for hosting static website content in a secure, scalable, and recoverable Azure environment.
Reference
Creating a High-Availability Storage Account for a Public Website
Continue reading
Next article
Empowering the Future: Building Meaningful Projects with Microsoft Technologies
Related Content
Empowering the Future: Building Meaningful Projects with Microsoft Technologies
Microsoft's technology stack enables developers to create impactful solutions using Azure, AI, and cross-platform tools for social good, sustainability, and innovation.
Storage Accounts in Azure: Configuring Public and Private Access
Azure storage accounts can be configured for public access with anonymous read access and geo-redundant backup, ensuring high availability.
The Great Unification: Transitioning from CommonJS to ES Modules in Node.js
This article explores the gradual shift from CommonJS to ES Modules (ESM) in Node.js, emphasizing the benefits of a unified module system, challenges in coexistence, and strategies for a smooth transition.