The Azure CLI (az) is a cross-platform command-line tool for managing Azure resources. It works on Windows, macOS, and Linux, and is an alternative to PowerShell for teams that prefer a bash-style syntax. Installing Azure CLI Download from https://learn.microsoft.com/en-us/cli/azure/install-azure-cli or install via package managers. On Windows, you can use winget install Microsoft.AzureCLI. Verify with az --version. Key Commands for Common Resources The Azure CLI follows a consistent pattern: az <resource-type> <action> --parameters. This makes commands easy to discover and remember.
Key Takeaways
Azure CLI uses a consistent pattern: az <resource> <action> --parameters.
az login authenticates your session; az group create makes a resource group.
You can create VNets, Public IPs, NICs, and VMs entirely from the command line.
Azure CLI works on Windows, macOS, and Linux — great for cross-platform teams.