Question

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

An organization is standardizing its cross-platform scripting tools to automate resource management in Azure. The administration team uses a mix of Windows, macOS, and Linux workstations. The team wants to install the tools locally on each workstation to run command-line administrative scripts.

Which two tools can be installed locally on Windows, macOS, and Linux to run these scripts?

  1. Azure CLIAnswer
  2. Azure PowerShellAnswer
  3. C
    Azure Cloud Shell
  4. D
    Azure Portal

Answer

Azure CLI and Azure PowerShell are the correct tools because both can be installed locally on Windows, macOS, and Linux workstations to run administrative scripts.
Both Azure CLI and Azure PowerShell are fully cross-platform command-line tools that can be installed locally on Windows, macOS, and Linux. This enables administrators to run scripts across different operating systems locally.

Step-by-Step Solution

1
Identify the environment requirements: The scripts must run locally on Windows, macOS, and Linux workstations without using a web browser.
Limits the options to locally installed command-line tools rather than web-hosted consoles or cloud-based shells.
This filters out Azure Portal and Azure Cloud Shell, which are browser-based.
2
Evaluate the cross-platform capabilities of the remaining command-line tools.
Both Azure CLI and Azure PowerShell (via PowerShell Core) are compatible and supported on Windows, macOS, and Linux.
Ensures the selected tools can be installed locally on all three specified operating systems.

Key Concept

Cross-platform support and local installation capability of Azure management tools (Azure CLI and Azure PowerShell).
Rate this question