Question 503 of 981
AZ-900 Describe Azure management and governance Practice Question
An IT administrator needs to manage Azure resources via command line across both Windows and Linux systems. Which tools support this?
⚠ Common exam trap
Many exam-takers assume Azure PowerShell is Windows-only and Azure CLI is Linux-only, but Microsoft has made both tools cross-platform since 2017 (Azure CLI) and 2018 (Azure PowerShell with the Az module).
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Azure CLI and Azure PowerShell (both cross-platform)
Both Azure CLI and Azure PowerShell are cross-platform tools that run on Windows, Linux, and macOS. The Azure CLI uses Python-based commands, while Azure PowerShell uses PowerShell cmdlets with the Az module; both authenticate via Azure AD and interact with the Azure Resource Manager REST API. This allows the IT administrator to manage Azure resources from the command line on any operating system.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Azure CLI only (Linux) and PowerShell (Windows)
Why it's wrong here
This option is incorrect because it misstates the platform support for Azure's command-line tools. Azure CLI is a Python-based tool that runs natively on Windows, Linux, and macOS, not just Linux. Azure PowerShell, when using the Az module, runs on Windows PowerShell and PowerShell Core, which itself is cross-platform for Linux and macOS. Thus, both tools are available on all major operating systems, making this option factually wrong.
- ✓
Azure CLI and Azure PowerShell (both cross-platform)
Why this is correct
This is the correct answer because both Azure CLI and Azure PowerShell are fully cross-platform command-line tools. Azure CLI is built on Python and runs on Windows, Linux, and macOS, while Azure PowerShell is built on .NET Core (PowerShell Core) and also runs on all those operating systems. They provide equivalent management capabilities for Azure resources, including authentication, resource creation, and configuration, from any popular operating system. This cross-platform support is a key advantage for developers and IT pros who work in mixed OS environments.
- ✗
Azure portal only
Why it's wrong here
This option is wrong because the Azure portal is a graphical web interface, not a command-line tool. While the portal offers a user-friendly way to manage Azure resources, it entirely relies on manual clicks and forms, lacking the scripting and automation capabilities required for repetitive tasks. Command-line tools like Azure CLI and Azure PowerShell offer programmatic control, which is essential for infrastructure as code and CI/CD pipelines. The portal cannot be used in scripts or automated workflows, so it is not an alternative to the command-line tools in this context.
- ✗
Azure Cloud Shell (Linux only)
Why it's wrong here
This option is incorrect because Azure Cloud Shell is not limited to Linux; it is a browser-based interactive shell that supports both Bash (Linux) and PowerShell (Windows) environments. Users can choose between Bash and PowerShell within the same Cloud Shell session, and both tools (Azure CLI and Azure PowerShell) are preinstalled. Moreover, Cloud Shell is merely a hosted environment that runs these command-line tools—it does not replace them, and it is not restricted to Linux-only. The key distinction is that Azure CLI and Azure PowerShell themselves are cross-platform, independent of Cloud Shell.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
This AZ-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-900 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.