Create a storage account to support the public website.
In the portal, select storage accounts
Select "+ Create"
Create new resource group and select "OK"
Name storage account
Select "Review and Create"
Select "Create"
Select Go to Resourcce
This storage requires high availability if there’s a regional outage. Additionally, enable read access to the secondary region,
In the Data management section
Select Redundancy
Select Read-access geo-redundant storage
Review primary and secondary location
Information on the public website should be accessible without requiring customers to login.
In the settings section
Ensure Allow Blob anonymous access is Enabled
Save your changes
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
In your storage account, select Data storage and select Containers blade
Select "+ Container"
Name the container
Select "Create"
**
Customers should be able to view the images without being authenticated. Configure anonymous read access for the public container blobs**
Select the public container
Select change access level
Ensure public access level is Blob
Select "OK"
Practice uploading files and testing access
For testing, upload a file to the public container. The type of file doesn’t matter
Select "Upload" from the Container
Upload file
Copy URL annd paste in a new browser tab
File should display
Configure soft delete
It’s important that the website documents can be restored if they’re deleted
Go to the overview blade of the storage account
On the properties page, loacte 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.
Don’t forget to Save your changes.
If something gets deleted, you need to practice using soft delete to restore the files.
Navigate to your container where you uploaded a file.
Select the file you uploaded and then select Delete.
Select OK to confirm deleting the file.
On the container Overview page, toggle the slider Show deleted blobs. This toggle is to the right of the search box.
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. *
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 blobs checkbox is checked.
Notice your options to keep all versions or delete versions after.
Don’t forget to Save your changes.
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.
Top comments (0)