‹ All AZ-900 questions

AZ-900 Practice Question 59: Azure CLI

Microsoft Azure Fundamentals (AZ-900) · Test 6 · question 9 of 10

Azure Management & Governanceeasy

A Linux-based team wants to script Azure administration from Bash, on their own laptops, and occasionally from a browser. Which statement about the Azure CLI is correct?

Select one answer
Show answer and explanation

Answer:

  • B. It is cross-platform, installs on Linux, macOS, and Windows, and also runs in Cloud Shell

The Azure CLI is a cross-platform command-line tool for connecting to Azure and executing administrative commands on Azure resources. You can install it locally on Linux, macOS, or Windows, use it from a browser through Azure Cloud Shell, or run it inside a Docker container, which covers both halves of this team's requirement without compromise.

Option A is false in both directions: the CLI is not Windows-only, and Azure PowerShell is itself cross-platform, so neither tool forces an operating system on you. Option C is contradicted directly; the documentation describes assembling CLI commands into a shell script in the syntax of your chosen shell to automate repetitive tasks. Option D reverses the truth: the Azure CLI uses JSON as its default output format, with table and other formats available through the --output parameter, so scripts normally consume structured JSON rather than scraping text.

Reference: What is the Azure CLI?

Practice Test 6 ›

Study guides for AZ-900

Azure Administrator (AZ-104): jobs, salary and the examAzure administrator role, jobs and pay data, and the AZ-104 exam: five domains, 100 minutes, US$165 / ₹4,865, AZ-900 first or not, and what next.
Free cloud certifications in 2026: which are really freeWhich free cloud certifications are really free in 2026: Oracle's free OCI exams, and the voucher routes for AWS, Microsoft and Google, with prices.
AI-901 exam guide: Azure AI Fundamentals after AI-900AI-901 replaced AI-900: learn what changed, how much Python and Microsoft Foundry you need, exam costs in India, and how to prepare.
Microsoft Fabric certification: DP-700 vs DP-600Microsoft Fabric certification means two exams, DP-600 and DP-700. Their roles, skills, format, cost in India, and which one to take first.
Which cloud certification is best? AWS vs Azure vs GoogleWhich cloud certification is best for a beginner? AWS Cloud Practitioner, AZ-900 and Google Cloud Digital Leader compared: cost, format and which first.
Azure certification path 2026: AZ-900, AZ-104, AZ-305The Azure certification path for 2026 - AZ-900, AZ-104 and AZ-305 in order, what each covers, the AZ-305 prerequisite, renewal and what to skip.
Azure RBAC vs Azure Policy vs Entra roles vs resource locksHow Azure RBAC, Azure Policy, Microsoft Entra roles and resource locks differ, how scope inheritance works, and when deny beats audit.
Azure Storage redundancy - LRS, ZRS, GRS, GZRS and failoverHow LRS, ZRS, GRS, RA-GRS, GZRS and RA-GZRS differ, what failover does to your account, and how access tiers interact with redundancy.