RANGER GAMEZ

Microsoft Azure Fundamentals (AZ-900) · chapter 13 of 14

Click, type or template?

Objective 3.3

Ways to manage Azure

The Azure portal

The Azure portal is the web-based console at portal.azure.com. You can build, manage and monitor everything from simple web apps to complex deployments with clicks, build custom dashboards for an organized view, and set accessibility options. It's designed for resiliency: it runs in every Azure datacenter, and Microsoft updates it continuously with no downtime for maintenance. Great for learning, exploring and one-off tasks.

Azure Cloud Shell

Azure Cloud Shell is a browser-based shell you open from the portal or at shell.azure.com. You're already signed in, and the tools are preinstalled, so there's nothing to set up. Choose Bash or PowerShell. To keep files between sessions you can attach an Azure file share, or run a quick ephemeral session with no storage at all.

Priya: So I could fix something from a borrowed laptop, or even my phone's browser?

Dev: Signed in and ready. Just be careful what you type.

Azure CLI and Azure PowerShell

Both are command-line tools that can do anything the portal can, but in scripts you can repeat. Azure CLI (command-line interface) uses az commands and is popular with Bash users. Azure PowerShell uses cmdlets, verb-noun commands from the Az module, and suits PowerShell users. Both run on Windows, macOS and Linux, inside Cloud Shell or installed locally. For the exam they're functionally equivalent: pick the one your team knows.

az group create --name rg-test \
  --location eastus

New-AzResourceGroup -Name rg-test \
  -Location eastus

Exam tip Cloud Shell is where you run commands, not a third tool. Azure CLI and Azure PowerShell are the tools; Bash and PowerShell are the shells.

Check yourself 1Priya needs to run a few az commands from a borrowed laptop where she can't install anything. Which option fits best?

  1. Install the Azure CLI on the laptop
  2. Azure Cloud Shell in the browser
  3. Azure Arc
  4. An ARM template
Show the answer

Answer: B. Azure Cloud Shell in the browser

Cloud Shell runs in the browser, is already signed in, and has the Azure CLI and Azure PowerShell preinstalled.

Objective 3.3

Azure Resource Manager and infrastructure as code

Azure Resource Manager

Azure Resource Manager (ARM) is Azure's deployment and management service. Every request, whether it comes from the portal, Azure CLI, Azure PowerShell, the REST application programming interfaces (APIs) or the software development kits (SDKs), goes through ARM. ARM authenticates and authorizes it, then passes it to the right Azure service. That's why every tool gets consistent results, and why role-based access control (RBAC), tags, locks and policies apply the same way whichever tool you use.

Every way of managing Azure goes through Azure Resource Manager, ARM. At the top, five tools: the Azure portal in a browser, Cloud Shell (a browser shell with Bash or PowerShell), the Azure CLI, Azure PowerShell, and templates for infrastructure as code, ARM templates in JSON and Bicep. Arrows from all of them lead into one bar, Azure Resource Manager, which checks who you are, your RBAC permissions and Azure Policy, then creates or changes resources: VMs, storage and databases. At the bottom, Azure Arc reaches outside Azure: on-premises servers, other clouds and Kubernetes clusters show up in Azure Resource Manager, so the same tags, Azure Policy and RBAC apply. A note says infrastructure as code describes resources in a file, so you can deploy the same way every time.
Portal, Cloud Shell, CLI, PowerShell and ARM templates or Bicep all talk to Azure Resource Manager. Azure Arc brings outside servers and clusters under the same management.

Infrastructure as code

Infrastructure as code (IaC) means describing your infrastructure in code files instead of clicking it together. The files live in source control, get reviewed like any other code, and build the same environment the same way every time, so dev, test and production match. Fewer mistakes, faster rebuilds, and a history of every change.

Sam: So my 112 clicks become one file, and staging can't forget the firewall rule.

Dev: Same file, same result. Every time.

ARM templates and Bicep

ARM templates are JavaScript Object Notation (JSON) files that describe the resources you want. They're declarative: you state what you want, not the steps to build it, and ARM works out the order, deploying independent resources in parallel. Deploying the same template again gives the same result. Templates can be split into modules and run scripts during deployment. Bicep is a simpler language for the same job that compiles into ARM templates.

Exam tip Azure's own IaC options: ARM templates and Bicep. Third-party tools such as Terraform also work, because they call ARM too.

Check yourself 2Dev wants test, staging and production built identically from files kept in source control. Which approach fits?

  1. Build each environment in the Azure portal by hand
  2. Ask Azure Advisor to copy one environment to another
  3. Put a ReadOnly lock on each resource group
  4. Infrastructure as code with Bicep or ARM templates
Show the answer

Answer: D. Infrastructure as code with Bicep or ARM templates

IaC files are declarative and repeatable, so every environment is built the same way and changes are tracked in source control.

Objective 3.3

Azure Arc

Azure management, anywhere

Azure Arc extends Azure's management to resources outside Azure: on premises, at the edge, or in other clouds. Once a server or cluster is Arc-enabled, it shows up in Azure Resource Manager like an Azure resource. You can see it in the portal, organize it with resource groups and tags, govern it with Azure Policy, control access with RBAC, and monitor and protect it with Azure Monitor and Defender for Cloud.

Rosa: So my servers stay by the printers but show up in Dev's portal?

Dev: Right where they are, managed from here.

Ranger: sits by the label printer, guarding it

What Arc can manage

Azure Arc can bring these into Azure management:

  • Servers: physical or virtual, Windows or Linux
  • Kubernetes clusters, wherever they run
  • Azure data services, such as SQL Managed Instance, running on your own Kubernetes
  • SQL Server instances outside Azure
  • Virtual machines on VMware vSphere and System Center Virtual Machine Manager (SCVMM)

Sam: Even the old Kubernetes cluster?

Dev: Even that. Same policies, same dashboards, same RBAC.

Exam tip Hybrid or multicloud + 'manage with Azure tools' = Azure Arc. Arc doesn't move anything into Azure; it stays where it is. Moving it = Azure Migrate.

Check yourself 3Kibble & Co. wants Azure Policy and Azure Monitor to cover servers that must stay in the warehouse. Which service makes that possible?

  1. Azure Migrate
  2. Azure File Sync
  3. Azure Arc
  4. Azure Cloud Shell
Show the answer

Answer: C. Azure Arc

Arc projects on-premises servers into Azure Resource Manager, so Policy, RBAC, tags and Monitor can manage them where they sit.

Practice questions

Answer in your head, then open the answer. Ranger's Sky Desk has 482 questions like these for Azure Fundamentals, with mock exams.

Question 1Rosa doesn't write scripts. She wants to check the warehouse app's resources and change a setting by pointing and clicking in a web browser. Which tool fits?

  1. Azure PowerShell
  2. The Azure portal
  3. The Azure CLI
  4. A Bicep file
Show the answer

Answer: B. The Azure portal

The Azure portal is a web-based, unified console with a graphical interface, an alternative to command-line tools for building, managing and monitoring resources.

Question 2Maya wants one screen that shows the shop's web app health, this month's cost tile and the warehouse VM's CPU chart side by side every morning. What should she build?

  1. A custom dashboard in the Azure portal
  2. An Azure Policy initiative
  3. A resource group named Dashboard
  4. An ARM template that outputs the numbers
Show the answer

Answer: A. A custom dashboard in the Azure portal

In the Azure portal you can create custom dashboards for an organized view of the resources and charts that matter to you.

Question 3Mr. Barkley asks whether the Azure portal goes offline for maintenance windows, like Pawsome Pets' old hosting panel did. What should Dev tell him?

  1. No; it updates continuously with no maintenance downtime
  2. Yes, every Sunday night for updates
  3. Yes, but only in regions without availability zones
  4. Only if the subscription has no support plan
Show the answer

Answer: A. No; it updates continuously with no maintenance downtime

The Azure portal is built for resiliency and continuous availability. It has a presence in every Azure datacenter and updates continuously with no downtime for maintenance.

Question 4Rosa uses a Chromebook at the warehouse. What does she need to install to manage resources in the Azure portal?

  1. Nothing beyond a supported web browser
  2. The Azure CLI
  3. The Az PowerShell module
  4. Azure Arc's Connected Machine agent
Show the answer

Answer: A. Nothing beyond a supported web browser

The Azure portal is web-based: you sign in from a browser and manage resources through a graphical interface, with nothing to install.

Question 5Sam built three VMs for one store by clicking through the portal. Now he must build the same setup for 12 more stores, identically. Why is the portal a poor fit for this?

  1. The portal can create only three VMs per subscription
  2. Resources created in the portal can't be tagged or moved afterward
  3. Repeating many manual clicks is slow and hard to keep consistent
  4. The portal can't create resources in more than one region at a time
Show the answer

Answer: C. Repeating many manual clicks is slow and hard to keep consistent

For repeatable, consistent environments, use scripts (Azure CLI or PowerShell) or infrastructure as code (ARM templates or Bicep) instead of manual clicks.

Practice it in Ranger's Sky DeskThe same lessons as a story, with drills, hands-on labs and mock exams. Free, in your browser.
Play free

Microsoft, Azure, Intune and Windows are trademarks of the Microsoft group of companies. Ranger Gamez is not affiliated with or endorsed by Microsoft. The practice questions are written to the published exam objectives; they are not real exam questions.