0
0
Azurecloud~30 mins

Azure CLI and Cloud Shell - Mini Project: Build & Apply

Choose your learning style9 modes available
Azure CLI and Cloud Shell Basics
📖 Scenario: You are starting to manage cloud resources on Microsoft Azure. You want to practice using the Azure Command-Line Interface (CLI) inside the Azure Cloud Shell environment. This will help you create and manage resources easily from the browser without installing anything.
🎯 Goal: Learn how to open Azure Cloud Shell, create a resource group using Azure CLI, set a location variable, and list the resource groups to confirm your creation.
📋 What You'll Learn
Use Azure CLI commands inside Azure Cloud Shell
Create a resource group with a specific name and location
Set a variable for the location
List resource groups to verify creation
💡 Why This Matters
🌍 Real World
Cloud administrators often use Azure CLI in Cloud Shell to quickly create and manage resources without installing software locally.
💼 Career
Knowing Azure CLI and Cloud Shell is essential for cloud engineers and administrators to automate and manage Azure resources efficiently.
Progress0 / 4 steps
1
Open Azure Cloud Shell and create a resource group
In Azure Cloud Shell, write the Azure CLI command to create a resource group named MyResourceGroup in the eastus location. Use the command az group create with the parameters --name MyResourceGroup and --location eastus.
Azure
Need a hint?

Use az group create --name MyResourceGroup --location eastus to create the resource group.

2
Set a variable for the location
In Azure Cloud Shell, create a variable called location and set it to the string eastus. Use the syntax location=eastus.
Azure
Need a hint?

Use location=eastus to set the variable.

3
Create another resource group using the location variable
Use the Azure CLI command az group create to create a resource group named MySecondResourceGroup using the location variable for the location parameter. The command should include --name MySecondResourceGroup and --location $location.
Azure
Need a hint?

Use az group create --name MySecondResourceGroup --location $location to create the second group.

4
List all resource groups to verify creation
Use the Azure CLI command az group list to list all resource groups. Add the parameter --output table to display the list in a readable table format.
Azure
Need a hint?

Use az group list --output table to see your resource groups clearly.