Download the Azure CLI. Refer Here for installation docs
AZURE CLI needs to be explicitly authenticated post installation
Why Azure CLI
Azure CLI is used to automate the activities, because we can create a script for the infrastructure on azure and run it whenever we need it or where ever we need it.
Authentication and Usage
To authenticate to azure
az login
Azure CLI usage and basic syntax
az <service> <resource> <subresource> <action> <paramters>
# example resource groups
az group list
az group create --name forcli --location 'Central US'
az group delete --name forcli
Scenario: Create a Resource Group and Virtual network with 3 subnets