Design a Data Retention Policy in Azure Blob

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this lab, we explore tiers (hot, cool, and archive) in Azure Blob. After completing this lab, there’s the opportunity to explore automating the movement of blobs through tiers.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create and Configure a Storage Account

For the first task, we need to create a storage account with the following properties:

  • (US) West US location
  • Standard performance
  • StorageV2
  • Hot Access tier
  • Hierarchical namespace disabled
  • Create a test container

Populate with the sample file (

Configure Lifecycle Management

In Azure Storage, configure Lifecycle management to move unused blobs from hot to cool tiers after 30 days of inactivity and cool to archive after 180 days of inactivity.

Additional Resources


We work for a Fortune 500 company that is evaluating a move to the cloud. They would like to begin with cloud storage. They have a current footprint of 50 terabytes. An executive committee has been formed and we have been asked as a technical resource to evaluate how feasible it is to move to Azure Blob storage.

We've been asked to evaluate the following requirements:

  • Provide hot storage for 5 terabytes of data.
  • Provide cool storage for 15 terabytes of data.
  • Provide archive storage for 30 terabytes of data.
  • Design automation to move unused files from hot to cool storage that haven't been touched in 30 days.
  • Design automation to move unused files from cool storage to archive that haven't been touched in 180 days.


  • Log in to the live environment with the provided Azure Labs credentials.
  • Create a storage account.
    • (US) West US location
    • Standard performance
    • StorageV2
    • Hot Access tier
    • Hierarchical namespace disabled
  • Create a test container.
    • Populate it with the sample file.
  • Move blob from hot to cool manually.
  • Configure Lifecycle management.
    • Configure hot to cool storage for 30 days.
    • Configure cool to archive storage for 180 days.

For detailed instructions on how to complete these tasks, expand each learning objective below, or click the Guide tab above the video player.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?