AZ-900 Practice Question 59: Azure CLI
Microsoft Azure Fundamentals (AZ-900) · Test 6 · question 9 of 10
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?
Show answer and explanation
Answer:
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?