Storage tiers (Hot, Cool, Archive)
📖 Scenario: You work for a company that stores different types of files in Azure Blob Storage. Some files are accessed frequently, some less often, and some rarely. To save money, you want to organize these files into different storage tiers: Hot for frequent access, Cool for infrequent access, and Archive for rarely accessed files.
🎯 Goal: Create an Azure Storage account configuration that defines three containers, each using a different storage tier: Hot, Cool, and Archive. This setup will help the company optimize costs based on how often files are accessed.
📋 What You'll Learn
Create a dictionary called
storage_containers with container names as keys and their storage tiers as values.Add a variable called
default_tier set to 'Hot' to use as a fallback tier.Write a loop that creates a new dictionary
container_settings with container names as keys and a dictionary of settings including the tier.Add a final configuration dictionary called
storage_account_config that includes the container_settings and a property account_tier set to 'Standard'.💡 Why This Matters
🌍 Real World
Cloud storage costs vary by how often data is accessed. Using storage tiers helps companies save money by placing data in the right tier based on usage.
💼 Career
Cloud engineers and administrators often configure storage accounts with tiering to optimize costs and performance.
Progress0 / 4 steps