Ways to Manage Azure: Portal, CLI, PowerShell, Cloud Shell, ARM Templates, Bicep and Infrastructure as Code
Many Tools, One Result
Every tool talks to Azure Resource Manager, so the result is the same. Choose what fits the job.
| Tool | Type | Best for |
|---|---|---|
| Azure portal | Web GUI | Learning, exploring, one-time tasks |
| Azure CLI | Command line (az), works on Windows, Linux, macOS | Scripts and automation |
| Azure PowerShell | PowerShell commands (New-AzVM) | Admins who use PowerShell |
| Cloud Shell | Browser shell with CLI and PowerShell ready | Quick commands with no install |
| ARM templates / Bicep | Declarative files | Repeatable deployments (IaC) |
| Azure mobile app | Phone app | Check status and restart resources on the go |
The Same Task Three Ways
Create a resource group:
bash
# Azure CLI
az group create --name rg-demo --location centralindia
powershell
# Azure PowerShell
New-AzResourceGroup -Name rg-demo -Location centralindia
Infrastructure as Code (IaC)
Instead of clicking, you describe resources in a file and Azure builds them. Benefits:
- Repeatable: same result every time
- Fast: deploy many resources at once
- Reviewable: store files in Git and review changes
- Fewer mistakes than manual clicking
- Declarative: you say what you want, not the steps
Bicep Example
bicep
param location string = resourceGroup().location
param storageName string
resource sa 'Microsoft.Storage/storageAccounts@2023-01-01' = {
name: storageName
location: location
sku: { name: 'Standard_LRS' }
kind: 'StorageV2'
}
bash
az deployment group create --resource-group rg-demo --template-file main.bicep --parameters storageName=mystore12345
Bicep or ARM? Both do the same job. Bicep is a simpler language that compiles to an ARM template (JSON).
Practice
- Create a resource group with the portal, then with CLI
- Why do companies prefer templates for production?
- Which tool needs no installation?
Conclusion
Use the portal to learn, CLI and PowerShell to script and Bicep or ARM templates for repeatable infrastructure as code. All use Azure Resource Manager.
Quick Summary: tools; same task; IaC; Bicep.

