Question

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

A company is designing an administrative strategy to manage its Azure environment. The strategy must accommodate a diverse IT team with the following requirements:

1. Administrators using macOS and Linux workstations must run automated deployment scripts locally using Azure PowerShell.
2. Field engineers using mobile devices must execute ad-hoc Azure CLI commands via a web browser.
3. All team members must have access to a shared, persistent workspace for shell scripts directly within their browser-based command-line interface.

Which configuration and tool combination should the company implement?

  1. Install PowerShell Core and the Az PowerShell module locally on macOS and Linux; have field engineers use Azure Cloud Shell (Bash or PowerShell), which mounts an Azure File share to persist scripts across sessions.Answer
  2. B
    Use Azure CLI locally on macOS and Linux workstations because Azure PowerShell is limited to Windows systems; have field engineers use Azure Cloud Shell, which persists files locally using browser storage.
  3. C
    Install the Az PowerShell module on macOS and Linux by configuring Windows containers locally; have field engineers use Azure Cloud Shell configured with Azure Blob storage to mount persistent directories.
  4. D
    Install PowerShell Core and the Az PowerShell module locally on macOS and Linux; have field engineers use the Azure Portal command console, which syncs persistent scripts through OneDrive.

Answer

Install PowerShell Core and the Az PowerShell module locally on macOS and Linux; have field engineers use Azure Cloud Shell (Bash or PowerShell), which mounts an Azure File share to persist scripts across sessions.
The correct option correctly states that Azure PowerShell runs locally on macOS and Linux using PowerShell Core and the Az module. It also correctly identifies that Azure Cloud Shell provides browser-based CLI and PowerShell environments, and relies on an Azure File share to provide persistent storage for user files across sessions.

Step-by-Step Solution

1
Evaluate local workstation requirements for macOS and Linux users who need to run Azure PowerShell.
Determine that Azure PowerShell is cross-platform when installed with PowerShell Core and the Az module, allowing local script execution on macOS and Linux without Windows virtualization.
To verify if local Azure PowerShell execution is possible on non-Windows platforms.
2
Evaluate browser-based CLI access for field engineers using mobile devices.
Identify Azure Cloud Shell as the browser-based environment that provides both Azure CLI and Azure PowerShell tools without requiring local installations.
To satisfy the requirement of running ad-hoc Azure CLI commands from a web browser.
3
Determine the persistence mechanism for browser-based shell scripts.
Identify that Azure Cloud Shell requires mounting an Azure File share to persist a user's home directory and files across sessions, rather than using browser storage or OneDrive.
To satisfy the requirement of accessing a shared, persistent workspace for scripts in the web-based shell.

Key Concept

Cross-platform compatibility of Azure management tools (Azure PowerShell, CLI) and Azure Cloud Shell persistence mechanisms.
Estimated Time:1m 30s
Rate this question