Azure Management Tools: Portal, Cloud Shell, Azure CLI, PowerShell, Resource Explorer and Azure Mobile App
The Tools
| Tool | Best for |
|---|---|
| Azure portal | Learning, visual checks, one-off changes |
| Cloud Shell | Browser terminal with CLI and PowerShell already signed in |
**Azure CLI (az)** | Cross-platform scripts, Linux and macOS friendly |
| Azure PowerShell (Az module) | Windows admins, rich objects and pipelines |
| Bicep and ARM templates | Repeatable infrastructure as code |
| REST API and SDKs | Custom applications |
| Azure mobile app | Quick checks and alerts |
Azure CLI
bash
az login # opens a browser to sign in
az account list -o table # list subscriptions
az account set --subscription "My Subscription"
az group list -o table
az vm list -d -o table # -d adds power state and IP
az vm list --query "[?location=='centralindia'].{Name:name, RG:resourceGroup}" -o table
az find "az vm create" # help finder
- Output formats:
-o table,json,tsv,yaml. Use tsv to put a value in a variable --queryuses JMESPath to filter results--helpafter any command shows its options
bash
IP=$(az vm show -d -g rg-demo -n web01 --query publicIps -o tsv)
echo "Web server IP: $IP"
Azure PowerShell
powershell
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Connect-AzAccount
Get-AzSubscription
Set-AzContext -Subscription "My Subscription"
Get-AzVM -Status | Select-Object Name, ResourceGroupName, PowerState
Get-AzVM | Where-Object { $_.Location -eq "centralindia" } | Format-Table Name, ResourceGroupName
Cloud Shell
- Open from the portal toolbar. Choose Bash or PowerShell
- It needs a small storage account and file share to keep your files (created on first use)
- Files in
clouddrivepersist. Sessions time out after inactivity
Simple Script Example
bash
#!/bin/bash
# Stop all VMs in a resource group to save money
RG=$1
for vm in $(az vm list -g "$RG" --query "[].name" -o tsv); do
echo "Deallocating $vm"
az vm deallocate -g "$RG" -n "$vm" --no-wait
done
Deallocate, not just stop A VM stopped from inside the OS still costs money for compute. Deallocate (portal Stop,
az vm deallocate) releases compute billing.
Practice
- Sign in with
az loginand list your resource groups in table format - Use
--queryto show only names and locations - Open Cloud Shell and run
Get-AzResourceGroup - Write a script that lists all VMs with their power state
Conclusion
Use the portal to learn, and CLI or PowerShell to automate. Cloud Shell gives a ready terminal. Learn output formats and queries so scripts are short and reliable.
Quick Summary: tools; CLI; PowerShell; Cloud Shell; scripting; practice.

