DEV Community

Cover image for Technical article on how to Create a storage account and configure high availability.
nadico chris
nadico chris

Posted on

Technical article on how to Create a storage account and configure high availability.

Table of content for this storage account.

  • Create a storage account for the company private documents.
  • Configure redundancy for the storage account.
  • Configure a shared access signature so partners have restricted - access to a file.
  • Back up the public website storage.
  • Implement lifecycle management to move content to the cool tier. Architecture diagram

https://microsoftlearning.github.io/Secure-storage-for-Azure-Files-and-Azure-Blob-Storage/Instructions/Media/task-3.png.

How to Create a storage account and configure high availability. I'll be using ACB/123 to create a step-by-step guide during this activity, let's go!

1- Create a storage account for the internal private company documents.

  • In the portal, search for and select Storage accounts. Select + Create.
  • Select the Resource group created in the previous lab.
  • Set the Storage account name to private. Add an identifier to the name to ensure the name is unique.
  • Select Review, and then Create the storage account.
  • Wait for the storage account to deploy, and then select Go to resource.

Sign into your Azure porta account and go to porta menu or sandwich.

Image description
Select Storage Account
Image description
Select + Create.

Image description
Select the Resource group created in the previous lab
Select Review, and then Create the storage account.
Image description
Image description
additional information Look out for this sign to ensure during the right thing.

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

Image description

2- This storage requires high availability if there’s a regional outage. Read access in the secondary region is not required. Configure the appropriate level of redundancy.

  • In the storage account, in the Data management section, select the Redundancy blade.
  • Ensure Geo-redundant storage (GRS) is selected.
  • Refresh the page.
  • Review the primary and secondary location information.
  • Save your changes.

Select data management, then redundancy

Image description
Ensure Geo-redundant storage (GRS) is selected then refresh page.

Image description
Save and refresh

Image description

Create a storage container, upload a file, and restrict access to the file.

Create a private storage container for the corporate data.

1- In the storage account, in the Data storage section, select the Containers blade.
Select + Container.
Ensure the Name of the container is private.
Ensure the Public access level **is **Private (no anonymous access).
As you have time, review the Advanced settings, but take the defaults.
Select Create.
Select data storage, then container

Image description
Select + Container.
Image description
Ensure the Name of the container is private

Image description
As you have time, review the Advanced settings, but take the defaults*Create*

Image description
2- For testing, upload a file to the private container. he type of file doesn’t matter. A small image or text file is a good choice. Test to ensure the file isn’t publically accessible.

  • Select the container.
  • Select Upload.
  • Browse to files and select a file.
  • Upload the file.
  • Select the uploaded file.
  • On the Overview tab, copy the URL.
  • Paste the URL into a new browser tab.
  • Verify the file doesn’t display and you receive an error.
  • Slect container.

Image description

Image description

  • Select Upload.
  • Browse to files

Image description

  • Upload file.

Image description

  • On the Overview tab, copy the URL and Paste the URL into a new browser tab.

Image description

Image description

  • Paste the URL into a new browser tab. Verify the file doesn’t display and you receive an error. Image description

3- An external partner requires read and write access to the file for at least the next 24 hours. Configure and test a shared access signature (SAS). Learn more about Shared Access Signatures.

  • Select your uploaded blob file and move to the Generate SAS tab
  • Select Generate SAS

Image description

  • In the Permissions drop-down, ensure the partner has only

Image description

Read permissions and then Select Generate SAS token and URL.
Image description

  • Copy the Blob SAS URL to a new browser tab.

Image description

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

Image description

Configure storage access tiers and content replication.

1- To save on costs, after 30 days, move blobs from the hot tier to the cool tier. Learn more how manage the Azure Blob storage lifecycle.

  • Return to the storage account

Image description

  • In the Overview section, notice the Default access tier is set to Hot.

Image description

  • In the Data management section, select the Lifecycle management blade.

Image description

  • Select Add rule.
  • Set the Rule name to movetocool
  • Set the Rule scope to Apply rule to all blobs in the storage account then** Select Next.

Image description

  • Ensure Last modified is selected.
  • Set More than (days ago) to 30.

Image description

  • In the Then drop-down select Move to cool storage.
  • As you have time, review other lifecycle options in the drop-down ,then select Add the rule. Image description
  • successfully deployed

Image description

Image description

2- The public website files need to be backed up to another storage account.[Learn more about object replication.

  • In your storage account, create a new container called backup. Use the default values. Refer back to Lab 02a if you need detailed instructions.
  • In the Data management section, select the Object replication blade.

Image description

  • Set the Destination storage account to the private storage account.

Image description

  • Set the Source container to public and the Destination container to backup. Image description

Top comments (0)