0
0
Azurecloud~15 mins

VM commands (create, start, stop) in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
VM commands (create, start, stop)
📖 Scenario: You are managing virtual machines (VMs) in Microsoft Azure. You need to create a VM, then start it, and finally stop it using Azure CLI commands.
🎯 Goal: Learn how to use Azure CLI commands to create a VM, start it, and stop it step-by-step.
📋 What You'll Learn
Use Azure CLI commands exactly as specified
Create a VM named myVM in resource group myResourceGroup
Start the VM named myVM
Stop the VM named myVM
💡 Why This Matters
🌍 Real World
Managing virtual machines in Azure is a common task for cloud administrators and developers to control compute resources.
💼 Career
Knowing how to create, start, and stop VMs using Azure CLI is essential for cloud engineers and system administrators working with Azure.
Progress0 / 4 steps
1
Create a VM
Write the Azure CLI command to create a virtual machine named myVM in the resource group myResourceGroup with the image UbuntuLTS.
Azure
Need a hint?

Use az vm create with --resource-group, --name, and --image options.

2
Add a configuration variable
Create a variable called vm_name and set it to myVM to use in later commands.
Azure
Need a hint?

Assign the string myVM to the variable vm_name.

3
Start the VM
Write the Azure CLI command to start the VM using the variable vm_name and resource group myResourceGroup.
Azure
Need a hint?

Use az vm start with --resource-group and --name using the variable vm_name.

4
Stop the VM
Write the Azure CLI command to stop the VM using the variable vm_name and resource group myResourceGroup.
Azure
Need a hint?

Use az vm stop with --resource-group and --name using the variable vm_name.