Resource naming conventions
📖 Scenario: You are working in a cloud team that manages many Azure resources. To keep things organized and easy to find, your team follows strict naming rules for resources.For example, resource names must include the environment, resource type, and a unique identifier, all separated by hyphens.
🎯 Goal: Create a list of Azure resource names following the naming convention: env-type-uniqueid. Then filter the list to only include production environment resources.
📋 What You'll Learn
Create a list called
resource_names with exact resource namesCreate a variable called
environment set to 'prod'Use a list comprehension to create a new list
prod_resources with only names starting with the environment valueAdd a final line to print the
prod_resources list💡 Why This Matters
🌍 Real World
In real cloud projects, consistent resource naming helps teams find and manage resources easily, especially in large environments.
💼 Career
Understanding and applying naming conventions is a key skill for cloud engineers and architects to maintain organized and scalable cloud infrastructure.
Progress0 / 4 steps