Secure storage for Azure Files and Azure Blob Storage

Ikechukwu Kelechi Alexander - Sep 22 - - Dev Community

Skilling tasks

  • 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.

[Step 1] Create a storage account to support the public website.

  • In the portal, search for and select Storage accounts.

Search Storage

  • Select + Create.

+Create

  • For resource group select new Give your resource group a name and select OK.

RG New Ok

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

Pwnw

  • Take the defaults for other settings.
  • Select Review and then Create.

RVC

CreAte

  • Wait for the storage account to deploy, and then select Go to resource.

Resource

[Step 2] 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.

Data Mgt & Redundancy

  • Ensure Read-access Geo-redundant storage is selected.

Geo-Redundant

  • Review the primary and secondary location information.

[Step 3] 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.
  • Ensure the Allow blob anonymous access setting is Enabled.
  • Be sure to Save your changes. Con- Allow-Blob-Enabled & Save

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.

Data Storage + Container

  • Ensure the Name of the container is public.
  • Select Create

[Step 2] Customers should be able to view the images without being authenticated. Configure anonymous read access for the public container blobs.

  • Select your public container.
  • On the Overview blade, select Change access level.

Public + Change Access

  • Ensure the Public access level is Blob (anonymous read access for blobs only).
  • Select OK.

Public + Blob

Practice uploading files and testing access.

[Step 1] 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.
  • Select Upload.

Upload

  • Browse to files and select a file. Browse to a file of your choice.

Browse

  • Select Upload.

Upload Image

  • Close the upload window, Refresh the page and ensure your file was uploaded.

Refresh

[Step 2] Determine the URL for your uploaded file. Open a browser and test the URL

  • Select your uploaded file.
    Select & Open

  • On the Overview tab, copy the URL.

Copy Url

  • Paste the URL into a new browser tab.

Paste

  • If you have uploaded an image file it will display in the browser. Other file types should be downloaded.

Image

. .
Terabox Video Player