Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 3-Describe Azure management and governance | AZ-900 Practice Exam | 230 Questions

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).

  1. Azure CLI is graphical, and Azure PowerShell is command-line only

  2.  Azure PowerShell uses PowerShell commands, while Azure CLI uses Bash commands

  3. Azure CLI is only for Linux systems, and Azure PowerShell is only for Windows

  4. Azure CLI supports automation, but Azure PowerShell does not

Correct answers

  1.  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.