0
0
Azurecloud~15 mins

Why VMs provide compute flexibility in Azure - See It in Action

Choose your learning style9 modes available
Why VMs Provide Compute Flexibility
📖 Scenario: You are working as a cloud engineer for a small company. Your manager wants to understand how virtual machines (VMs) in Azure can help the company quickly adjust computing power based on changing needs.
🎯 Goal: Build a simple Azure VM configuration that shows how to create a VM with adjustable compute resources, demonstrating the flexibility of VMs.
📋 What You'll Learn
Create a dictionary called vm_config with keys name, location, and size.
Add a variable called desired_size to represent the VM size to be used.
Use the desired_size variable to update the size in vm_config.
Add a final key status with value running to vm_config to complete the VM setup.
💡 Why This Matters
🌍 Real World
Cloud engineers often need to adjust VM sizes to match workload demands quickly. This project shows how VM configurations can be flexible and easily updated.
💼 Career
Understanding VM configuration and flexibility is essential for roles like cloud administrator, cloud engineer, and DevOps specialist.
Progress0 / 4 steps
1
Create the initial VM configuration dictionary
Create a dictionary called vm_config with these exact entries: 'name': 'TestVM', 'location': 'eastus', and 'size': 'Standard_B1s'.
Azure
Need a hint?

Use curly braces to create a dictionary with the keys and values exactly as shown.

2
Add a variable for desired VM size
Add a variable called desired_size and set it to 'Standard_B2s' to represent the new VM size.
Azure
Need a hint?

Assign the string 'Standard_B2s' to the variable desired_size.

3
Update the VM size using the desired size variable
Update the size key in the vm_config dictionary to use the value from the desired_size variable.
Azure
Need a hint?

Use dictionary key assignment to update the size in vm_config.

4
Complete the VM setup by adding a status
Add a new key status with the value 'running' to the vm_config dictionary to indicate the VM is active.
Azure
Need a hint?

Add the status key with the value 'running' to show the VM is active.