DEV Community

Cover image for Securing Corporate Data: Azure Storage Private Access & Lifecycle Management
Louis Oodo
Louis Oodo

Posted on

Securing Corporate Data: Azure Storage Private Access & Lifecycle Management

Securing Corporate Data: Azure Storage Private Access & Lifecycle Management

Introduction

In cloud architecture, managing internal company documents requires a different strategy than public assets. You must prioritize high availability while strictly limiting access to authorized users. This guide covers how to set up a private storage account with Geo-redundant storage (GRS), implement temporary access using Shared Access Signatures (SAS), and optimize costs using automated lifecycle management. By the end, you will also learn how to create an automated backup using Object Replication between storage accounts.


Create a storage account and configure high availability.

Create a storage account for the internal private company documents.

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

  • Select + Create.
    Create

  • Select the Resource group created in the previous lab.
    Resource group

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

  • Select Review, and then Create the storage account.
    Review+Create

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

  1. 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.
    Redundancy blade

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

  • Refresh the page.

  • Review the primary and secondary location information.
    primary and secondary location information

  • Save your changes.
    Save


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

  1. Create a private storage container for the corporate data.
  • In the storage account, in the Data storage section, select the Containers blade.
    Container

  • Select + Container.
    + Container

  • Ensure the Name of the container is private.
    Name

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

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

  • Select Create.

  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 publically accessible.
  • Select the container.
    container

  • Select Upload.
    Upload

  • Browse for files and select a file.
    Browse for files

  • Upload the file.
    Upload

  • Select the uploaded file.
    Select the uploaded file

  • On the Overview tab, copy the URL.
    URL link

  • Paste the URL into a new browser tab.
    Paste the URL into a new browser tab

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

  1. 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.
    Generate SAS

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

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

  • Select Generate SAS token and URL.
    Generate SAS token and URL

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

  • 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.
    Blob SAS URL


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.
  • In the Overview section, notice the Default access tier is set to Hot.
    Default access tier

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

  • Select Add rule.
    Add rule

  • Set the Rule name to movetocool.
    movetocool

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

  • Select Next.
    Next

  • Ensure Last modified is selected.
    Last modified

  • Set More than (days ago) to 30.
    30

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

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

  • Add the rule.
    Add the rule

  1. 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.
    backup

  • Navigate to your publicwebsite storage account. This storage account was created in the previous exercise.

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

  • Select Create replication rules.
    Create replication rules

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

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

Source container to public and the Destination container to backup

  • Create the replication rule. the replication rule

Conclusion

By following these steps, you have secured your corporate documents while maintaining a cost-effective and resilient architecture. Implementing GRS ensures your data survives regional incidents, while Private access levels and SAS tokens ensure only authorized parties can view sensitive content. Additionally, with Lifecycle Management and Object Replication in place, your data is now both cost-optimized and backed up automatically. These settings form a professional foundation for enterprise-grade storage management in Azure.

Top comments (1)

Collapse
 
realcloudprojects profile image
SKILL.SCH

Nice