Question 113 — Domain 3-Describe Azure management and governance | AZ-900 Practice Exam | 230 Questions
Which of the following describes the difference between Azure PowerShell and Azure CLI? (Select one answer).
Azure CLI is graphical, and Azure PowerShell is command-line only
Azure PowerShell uses PowerShell commands, while Azure CLI uses Bash commands
Azure CLI is only for Linux systems, and Azure PowerShell is only for Windows
Azure CLI supports automation, but Azure PowerShell does not
Correct answers
Azure PowerShell uses PowerShell commands, while Azure CLI uses Bash commands
Explanations
Correct:
Azure PowerShell uses PowerShell commands, while Azure CLI uses Bash commands
The primary difference between Azure PowerShell and Azure CLI is the syntax of commands: PowerShell uses cmdlets, while CLI uses Bash commands. Both tools support similar functionality and automation.
Wrong:
Azure CLI is graphical
This is incorrect because both tools are command-line interfaces and do not have graphical interfaces.
Azure CLI is only for Linux systems
This is incorrect as both Azure CLI and PowerShell are cross-platform and work on Windows, macOS, and Linux systems.
Azure PowerShell does not support automation
This is incorrect because both Azure PowerShell and Azure CLI support automation through scripting.