Skip to main content

Enable Archiving with Azure Blob Storage

Hands-On Lab

 

Photo of James Lee

James Lee

Training Architect

Length

00:45:00

Difficulty

Beginner

Azure storage offers different access tiers, which allow you to store blob object data in the most cost-effective manner. The available access tiers include hot, which is optimized for storing data that is accessed frequently; cool, which is optimized for storing data that is infrequently accessed and stored for at least 30 days; and archive, which is optimized for storing data that is rarely accessed and stored for at least 180 days with flexible latency requirements (on the order of hours). In this hands-on lab, we will be creating a blob storage container in a pre-provisioned Azure storage account. We will upload a few sample files to the container and then attempt to download them, showing that we can do so in either a hot or cool tier. We will then change the access tier of the blobs to archive and test to see whether or not we are able to download the blobs.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Enable Archiving with Azure Blob Storage

Introduction

In this hands-on lab, we will be creating a blob storage container in a pre-provisioned Azure storage account. We will upload a few sample files to the container and then attempt to download them, showing that we can do so in either a hot or cold tier. We will then change the access tier of the blobs to archive and test to see whether or not we are able to download the blobs.

Solution

Log in to the Azure Portal using the credentials provided on the lab instructions page.

Create a Blob Container in the Azure Storage Account

  1. In the Azure Portal, click Storage accounts in the left-hand navigation menu.
  2. Click on the storage account provided, named saXXXXX, where XXXXX is a unique five-character lab identifier.
  3. In the storage account blade, click Blobs.
  4. Click + Container to create a new blob container.
  5. Set the following values:
    • Name: Anything you'd like (e.g., "testblobs")
    • Public access level: Private
  6. Click OK.

Upload Sample Files to the Blob Container

  1. Click the newly created blob container.
  2. Click Upload.
  3. In the Upload blob dialog, click the folder icon.
  4. Select three files of your choosing from your local workstation to upload to the blob. (Use Ctrl + click (Command + click for Mac) to select multiple files.)
  5. Click Open.
  6. Click Upload.
  7. Click the red X to exit the Upload blob dialog.

Change the Access Tier of the Uploaded Blobs

Change Access Tier for Second Blob

  1. Leave the first blob alone. It will remain in the hot access tier.
  2. Click the checkbox next to the second blob.
  3. Click Change tier.
  4. In the Change tier dialog, change the access tier to Cool.
  5. Click Save.

Change Access Tier for Third Blob

  1. Click the checkbox next to the third blob.
  2. Click Change tier.
  3. In the Change tier dialog, change the access tier to Archive.
  4. Click Save.

Test Downloading the Blobs

  1. Click the ellipsis (three dots) next to the blob in the hot access tier.
  2. Click Download. The file should appear in a new browser window, proving we can download it.
  3. Click the ellipsis (three dots) next to the blob in the cool access tier.
  4. Click Download. The file should appear in a new browser window, proving we can download it.
  5. Click the ellipsis (three dots) next to the blob in the archive access tier.
  6. Click Download. A new browser window should appear with an error message, meaning we cannot download it.

Conclusion

Congratulations on successfully completing this hands-on lab!