Question

Difficulty: MediumAzure Portal, CLI, PowerShell, and Cloud Shell

A company is migrating its operations to Azure. The operations team consists of Windows administrators who prefer using PowerShell, and Linux administrators who prefer using Bash and Azure CLI. Both groups want to write and execute scripts locally from their own workstations. Which statement is true regarding the local installation of these command-line tools?

  1. Both Azure CLI and Azure PowerShell can be installed locally on both Windows and Linux operating systems.Answer
  2. B
    Azure CLI can only be installed on Linux and macOS, whereas Azure PowerShell can only be installed on Windows.
  3. C
    Azure CLI can be installed on both Windows and Linux, but Azure PowerShell is strictly limited to Windows.
  4. D
    Azure PowerShell can be installed on both Windows and Linux, but Azure CLI is strictly limited to Linux and macOS.

Answer

Both Azure CLI and Azure PowerShell can be installed locally on both Windows and Linux operating systems.
Both Azure CLI and Azure PowerShell are fully cross-platform tools. Azure CLI can be installed locally on Windows, macOS, and Linux. Similarly, Azure PowerShell is built on PowerShell Core, which is cross-platform, allowing it to be installed and run locally on Windows, macOS, and Linux.

Step-by-Step Solution

1
Analyze the operating system requirements of the operations team, which includes both Windows and Linux environments.
Identify that the solution must accommodate local command-line execution for both Windows and Linux users.
This establishes the environment constraints for the choice of tools.
2
Evaluate the cross-platform capabilities of Azure CLI and Azure PowerShell.
Confirm that Azure CLI is cross-platform (supporting Windows, macOS, Linux) and Azure PowerShell (built on PowerShell Core) is also cross-platform (supporting Windows, macOS, Linux).
This determines which tool configurations are supported locally on the team's workstation operating systems.

Key Concept

Cross-platform compatibility of Azure command-line tools
Rate this question