Question

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

A team of developers uses macOS workstations. They need to run command-line scripts locally on their machines to create and manage Azure resources. Which of the following tools can be installed locally on macOS to support command-line administration? (Select two.)

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

Answer

Azure CLI and Azure PowerShell are correct. Both tools are cross-platform and can be installed locally on macOS to perform command-line administration of Azure resources.
The correct tools are Azure CLI and Azure PowerShell. Both are cross-platform command-line tools that can be installed locally on macOS, Linux, and Windows to script and manage Azure resources.

Step-by-Step Solution

1
Identify the operating system and workflow requirements in the scenario.
The workstations run macOS, and the administrators need command-line tools installed locally.
This establishes the environment (macOS) and delivery method (local CLI tools rather than browser-based interfaces).
2
Evaluate the cross-platform capability of Azure command-line tools.
Both Azure CLI and Azure PowerShell are cross-platform. Azure PowerShell runs on macOS via PowerShell Core, and Azure CLI is natively supported on macOS.
This identifies the correct tools that meet the criteria of being locally installed command-line applications.
3
Evaluate the remaining options.
Azure Cloud Shell is browser-based, and Azure Portal is a graphical web console. Neither is a locally installed command-line application.
This rules out the incorrect options.

Key Concept

Cross-platform compatibility and local installation support for Azure command-line tools.
Rate this question