Hello readers! I trust this week has been eventful. Well, I have been making sure you do not run dry on what to read. In this week's article, here is a taster to what we would be doing.
- Create a storage account with high availability.
- Ensure the storage account has anonymous public access.
- Create a blob storage container for the website documents.
- Enable soft delete so files can be easily restored.
- Enable blob versioning.
Without further ado, lets go to the clouds!
Creating a storage account with high availability and supports 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 then set the storage account name to publicwebsite. Select review, and then create the storage account.
- Wait for the storage account to deploy, and then select Go to resource.
- In the storage account, in the Data management section, select the Redundancy blade and ensure Read-access Geo-redundant storage is selected.
Ensuring the storage account has anonymous public access.
Information on the public website should be accessible without requiring customers to login
- In the storage account, in the Settings section, select the Configuration blade and ensure the Allow blob anonymous access setting and also save your changes.
Creating a blob storage container for the website with anonymous read access
- In the storage account, in the Data storage section, select the Containers blade, select + Container, ensure the name of the container is public and save
Configure anonymous read access for the public container blobs
- 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) and select OK.
Practice uploading files and testing access.
For testing, ensure you are viewing your container.
- Select Upload requesting for your file, Browse to files and select a file. Select Upload. Close the upload window, Refresh the page and ensure your file was uploaded.
- Determine the URL for your uploaded file. Select your uploaded file. On the Overview tab, copy the URL.
- Paste the URL into a new browser tab. If you have uploaded an image file it will display in the browser. Other file types should be downloaded
Enable soft delete so files can be easily restored
- Go to the Overview blade of the storage account. On the Properties page, locate the Blob service section and 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.
- 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 that shows 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.
Enabling blob versioning.
- Go to the Overview blade of the storage account. On the Properties page, locate the Blob service section and 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.
It's a wrap guys. And that's how you configure a blob storage account. This was awesome!!!
Comment, Share and like...And I'll see you in the next article.
Top comments (0)