Question

Difficulty: Very hardAzure Portal, CLI, PowerShell, and Cloud Shell

An organization has a diverse IT administration team using workstations running Windows 11, macOS, and Ubuntu Linux. The team needs to implement scripting and management tools to automate resource deployments while minimizing local installation overhead and ensuring cross-platform compatibility.

Which two statements regarding Azure management tools are correct?

  1. Azure Cloud Shell is a browser-based shell that offers both Bash and PowerShell environments, enabling administrators to run Azure CLI and Azure PowerShell commands from any operating system without local tool installation.Answer
  2. Both Azure CLI and Azure PowerShell are cross-platform tools that can be installed locally and run on Windows, macOS, and Linux systems.Answer
  3. C
    Azure PowerShell commands can only be executed on Windows workstations because the underlying cmdlet architecture requires Windows PowerShell, while Azure CLI is restricted to Linux and macOS.
  4. D
    Azure Cloud Shell automatically detects the client operating system and restricts the available shell environments, permitting only Bash sessions on macOS/Linux clients and only PowerShell sessions on Windows clients.

Answer

The correct statements are: Azure Cloud Shell is a browser-based shell that offers both Bash and PowerShell environments, and both Azure CLI and Azure PowerShell are cross-platform tools that can be installed locally on Windows, macOS, and Linux.
The correct choices highlight the true cross-platform nature of Azure CLI, Azure PowerShell, and Azure Cloud Shell. Azure CLI and Azure PowerShell can be installed locally on Windows, macOS, and Linux. Azure Cloud Shell runs in a web browser, providing both Bash and PowerShell environments without any local tool installations or OS-specific shell restrictions.

Step-by-Step Solution

1
Analyze the cross-platform capabilities of local Azure management tools.
Both Azure CLI and Azure PowerShell are cross-platform and support Windows, macOS, and Linux.
Azure PowerShell relies on PowerShell Core (PowerShell 7+) for cross-platform execution, and Azure CLI has native installers for all major OS platforms.
2
Analyze the capabilities of Azure Cloud Shell.
Azure Cloud Shell runs entirely in a browser container and offers both Bash (with Azure CLI) and PowerShell environments regardless of the client OS.
Since it is container-based and browser-accessed, it requires no local installation or OS-based restriction.

Key Concept

Cross-platform compatibility and installation requirements of Azure Portal, CLI, PowerShell, and Cloud Shell
Estimated Time:1m 30s
Rate this question