Module 1: Assignment - 3

Tasks To Be Performed: Use Azure CLI and Azure PowerShell to:

  1. Create three more resource groups in a specific region. For example: “West US”
  2. List all resource groups in West US

Continuing from Assignment 2:_Module1

In order to use “Azure CLI” I make sure the terminal is set to “Bash”


To create three new resource groups in the “West US” region, In the command-line interface I enter the following commands:

az group create --name ResourceGroup1 --location westus
az group create --name ResourceGroup2 --location westus
az group create --name ResourceGroup3 --location westus

To list all resource groups in the “West US” region, I use the following command:

az group list --query "[?location=='westus']" --output table

Success