DEV Community

Cover image for Provision of private storage for internal company documents
Oladimeji Zainab
Oladimeji Zainab

Posted on

Provision of private storage for internal company documents

Introduction

In today’s digital landscape, securing sensitive corporate data is a critical responsibility for every organization. Businesses require storage solutions that not only protect confidential documents from unauthorized access but also ensure high availability and disaster recovery in the event of regional outages. Microsoft provides powerful cloud storage capabilities through Azure Storage Account, enabling organizations to build scalable, secure, and resilient storage infrastructures.

In this guide, I will walk through the step-by-step process of provisioning private storage for internal company documents using Azure Storage Accounts. The tutorial covers configuring geo-redundant storage (GRS) for high availability, creating secure private containers, generating Shared Access Signatures (SAS) for controlled external collaboration, implementing lifecycle management policies to optimize storage costs, and configuring object replication for backup and business continuity. By the end of this project, you will have a secure and enterprise-ready storage solution tailored for corporate document management.

Create a storage account for the internal private company documents.

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

store

  • Select + Create.

selectplus

  • Select the Resource group created in the previous lab.

resource

  • Set the Storage account name to privatestrg001. Add an identifier to the name to ensure the name is unique.

storage

  • Select Review, and then Create the storage account.

review

review

review

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

review

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.

review

  • Ensure Geo-redundant storage (GRS) is selected.

review

  • Be sure to save and click refresh to ensure that it is saved

review

review

  • Review the primary and secondary location information.

review

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

  • In the storage account, in the Data storage section, select the Containers blade.

review

  • Select + Container.

review

  • Ensure the Name of the container is private.

review

  • Ensure the Public access level is Private (no anonymous access).

review

  • As you have time, review the Advanced settings, but take the defaults.

review

  • Select Create.

review

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 publically accessible.

  • Select the container.

review

  • Select Upload.

review

  • Browse to files and select a file.

review

  • Upload the file.

review

review

  • Select the uploaded file.

review

  • On the Overview tab, copy the URL.

review

  • Paste the URL into a new browser tab.

review

  • Verify the file doesn’t display and you receive an error.

review

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

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

review

review

review

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

review

  • Verify the Start and expiry date/time is for the next 24 hours.

review

  • Select Generate SAS token and URL.

review

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

review

review

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

review

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

  • Return to the storage account.

review

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

review

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

review

  • Select Add rule.

review

  • Set the Rule name to movetocool.

review

  • Set the Rule scope to Apply rule to all blobs in the storage account.

review

  • Select Next.

review

  • Ensure Last modified is selected.

review

  • Set More than (days ago) to 30.

review

  • In the Then drop-down select Move to cool storage.

review

  • As you have time, review other lifecycle options in the drop-down.

review

  • Add the rule.

review

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

  • In your storage account, create a new container called backup. Use the default values.

review

review

  • Navigate to your fragnantstrg storage account.

review

  • In the Data management section, select the Object replication blade.

review

  • Select Create replication rules.

review

review

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

review

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

review

review

  • Create the replication rule.

review

  • Optionally, as you have time, upload a file to the public container. Return to the private storage account and refresh the backup container. Within a few minutes your public website file will appear in the backup folder.

review

review

review

review

Conclusion

Provisioning secure and highly available storage is an essential part of modern cloud infrastructure management. In this project, we successfully configured a private Azure Storage Account with geo-redundant storage to ensure resilience during regional outages, secured sensitive corporate files through private container access, and implemented Shared Access Signatures (SAS) to enable temporary and controlled external collaboration.

Additionally, we optimized long-term storage costs by configuring lifecycle management policies to automatically transition blobs from the hot tier to the cool tier after 30 days. Finally, we enhanced data protection and business continuity by setting up object replication between storage accounts for automated backup of public website content.

This hands-on implementation demonstrates how Microsoft cloud storage solutions can help organizations maintain security, scalability, availability, and operational efficiency while managing critical internal documents in the cloud.

Top comments (0)