0
0
Azurecloud~30 mins

Why automation matters in Azure - See It in Action

Choose your learning style9 modes available
Why Automation Matters in Azure Cloud
📖 Scenario: You are working as a cloud engineer for a small company. The company wants to manage its Azure resources more efficiently. Right now, they create virtual machines manually, which takes a lot of time and can cause mistakes.Your task is to create a simple automation setup that defines virtual machines in a structured way and then uses a configuration variable to control how many machines to create. This will help the company save time and avoid errors.
🎯 Goal: Build a basic Azure automation script that defines virtual machines, uses a configuration variable to control the number of machines, and applies a loop to prepare the deployment plan. Finally, complete the script with a tag that marks the deployment as automated.
📋 What You'll Learn
Create a dictionary called vm_templates with exact VM names and sizes
Add a configuration variable called vm_count with the value 3
Use a for loop with variables vm_name and vm_size to iterate over vm_templates.items()
Add a final line that sets deployment_tag = 'AutomatedDeployment'
💡 Why This Matters
🌍 Real World
Automating cloud resource creation saves time and reduces errors in real companies managing Azure infrastructure.
💼 Career
Cloud engineers and DevOps professionals use automation scripts like this to deploy and manage resources efficiently.
Progress0 / 4 steps
1
Create VM templates dictionary
Create a dictionary called vm_templates with these exact entries: 'webserver': 'Standard_B1s', 'database': 'Standard_B2s', 'cache': 'Standard_B1ms'
Azure
Need a hint?

Use curly braces {} to create a dictionary with keys and values.

2
Add VM count configuration
Add a configuration variable called vm_count and set it to 3
Azure
Need a hint?

Just assign the number 3 to the variable vm_count.

3
Loop over VM templates
Use a for loop with variables vm_name and vm_size to iterate over vm_templates.items()
Azure
Need a hint?

Use for vm_name, vm_size in vm_templates.items(): to loop through the dictionary.

4
Add deployment tag
Add a final line that sets deployment_tag = 'AutomatedDeployment'
Azure
Need a hint?

Assign the string 'AutomatedDeployment' to the variable deployment_tag.