Tools to manage and deploy resources
Choose between the portal, Cloud Shell, CLI and PowerShell, explain Azure Arc and infrastructure as code with ARM templates.
15 min
You can manage Azure in several ways. They all call the same underlying Azure Resource Manager (ARM) API.
- Azure portal: web-based graphical interface. Good for exploring and one-off tasks.
- Azure Cloud Shell: a browser-based shell in the portal. Choose Bash or PowerShell. It comes with the tools already installed and nothing to set up locally.
- Azure CLI: command-line tool (
az ...) for Windows, macOS and Linux. Good for scripts. - Azure PowerShell: PowerShell cmdlets for Azure. Good for Windows-centric automation.
- Azure mobile app and REST APIs/SDKs for other needs.
Azure Arc extends Azure management to resources outside Azure: on-premises servers, other clouds, and Kubernetes clusters. You can apply Policy, tags, monitoring and RBAC to them as if they were in Azure.
Infrastructure as code (IaC) means describing your infrastructure in files that can be versioned, reviewed and repeated, instead of clicking in a portal.
- ARM templates: JSON files that declare resources. Deployments are idempotent (run again and you get the same result) and declarative (you describe the end state, not the steps).
- Bicep: a simpler language that compiles to ARM templates.
The benefits of IaC: consistency across environments, speed, fewer manual errors, and a record of every change.
Which tool for which job?
Azure portal
- Where it runs
- Browser, graphical
- Best for
- Exploring, learning, one-off changes
Cloud Shell
- Where it runs
- Browser, command line, nothing to install
- Best for
- Quick commands from anywhere
Azure CLI
- Where it runs
- Your machine or Cloud Shell
- Best for
- Cross-platform scripts
Azure PowerShell
- Where it runs
- Your machine or Cloud Shell
- Best for
- PowerShell users and Windows automation
ARM templates and Bicep
- Where it runs
- Deployed through ARM
- Best for
- Repeatable, declarative deployments
Every tool goes through Azure Resource Manager.
Choose the approach.
A team must create identical test, staging and production environments, repeatedly, with no manual steps.
“ARM templates are step-by-step scripts.”
Scripts list commands in order.
What is actually true
ARM templates are declarative: they state the desired end result, and ARM works out what to create or change. Running the template again does not duplicate resources.
- The portal, CLI, PowerShell, Cloud Shell and templates all use Azure Resource Manager.
- Cloud Shell gives Bash or PowerShell in the browser with nothing to install.
- Azure Arc brings non-Azure servers and Kubernetes into Azure management.
- IaC with ARM templates or Bicep is declarative, repeatable and idempotent.
Tools check.
Which tool provides a browser-based command line with Bash or PowerShell?
- AAzure Bastion
- BAzure Advisor
- CAzure Cloud Shell
- DAzure Arc
Which service lets you manage on-premises servers with Azure tools?
- AAzure Arc
- BAzure Cloud Shell
- CAzure Backup
- DAzure Monitor
What do ARM templates use to define resources?
- AJSON declarations of the desired state
- BA binary installer
- CManual runbooks
- DA series of GUI clicks
Which language compiles to ARM templates and is simpler to write?
- ASQL
- BBicep
- CC++
- DPowerShell
Which TWO are benefits of infrastructure as code?
- AA record of changes in version control
- BMore manual steps
- CSlower deployments
- DDifferent settings for each environment by accident
- EConsistent, repeatable deployments
Practise this lesson, not just read it
In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Microsoft Azure Fundamentals (AZ-900) is planned around your week. Free.