DEV Community

Cover image for How To Provide Private Storage For Internal Company Documents.
Blessing
Blessing

Posted on • Updated on

How To Provide Private Storage For Internal Company Documents.

The company needs storage for their offices and departments. This content is private to the company and shouldn't be shared without consent. This storage requires high availability if there's a regional outage. The company wants to use this storage to back up the public website storage.

Create a storage account and configure high availability.

Create a storage account for the internal private company documents.

Step 1

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

s1

s2

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

s3

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.

Step 2

In the storage account, in the Data management section, select the Redundancy blade.
Ensure Geo-redundant storage (GRS) is selected.

step 2

Review the primary and secondary location information.
Save your changes.

s3

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

Create a private storage container for the corporate data.

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

step 1

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

step 2

Select the container.
Select Upload.
Browse to files and select a file.
Upload the file.

s2

Select the uploaded file.
On the Overview tab, copy the URL.

s3

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

s4

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

Step 1

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

step 1

In the Permissions drop-down, ensure the partner has only Read permissions.

Verify the Start and expiry date/time is for the next 24 hours.
Select Generate SAS token and URL.

s2

Copy the Blob SAS URL to a new browser tab.

s3

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.

s4

Configure storage access tiers and content replication.

To save on costs, after 30 days, move blobs from the hot tier to the cool tier.

Step 1

Return to the storage account.
In the Overview section, notice the Default access tier is set to Hot.

s1

In the Data management section, select the Lifecycle management blade.
Select Add rule.

s2

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

s3

Ensure Last modified is selected.

Set More than (days ago) to 30.
In the Then drop-down select Move to cool storage.
As you have time, review other lifecycle options in the drop-down.
Add the rule.

s4

The public website files need to be backed up to another storage account.

Step 1

In your storage account, create a new container called backup. Use the default values. Refer back to Lab 02a if you need detailed instructions.

s1

Navigate to your public website storage account. This storage account was created in the previous exercise.

In the Data management section, select the Object replication blade.
Select Create replication rules.

s2

Set the Destination storage account to the private storage account.

Set the Source container to public and the Destination container to backup.
Create the replication rule.

Image description

These are the steps in Providing a Private Storage For Internal Company Documents!!

Top comments (0)