Question

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

An enterprise is establishing a multi-platform development and operations pipeline. A lead engineer outlines the following scripting requirements for their deployment runners:

* Runner X: Runs on macOS and must execute Azure PowerShell scripts to audit resource groups.
* Runner Y: Runs on Red Hat Enterprise Linux (RHEL) and must execute Azure CLI commands to deploy web apps.

The team needs to determine if these runners can execute the scripts locally without using web-based tools.

What is the feasibility of the proposed runner configurations?

  1. Both Runner X and Runner Y are feasible, because both Azure CLI and Azure PowerShell are cross-platform and support local installation on macOS and Linux.Answer
  2. B
    Only Runner Y is feasible, because Azure CLI is cross-platform, whereas Azure PowerShell is restricted to Windows and cannot be installed locally on macOS.
  3. C
    Only Runner X is feasible, because Azure PowerShell is supported on macOS, whereas Azure CLI is restricted to Windows and cannot run locally on Linux.
  4. D
    Neither runner is feasible, because local execution of Azure CLI is restricted to Linux and macOS, and local execution of Azure PowerShell is restricted to Windows.

Answer

Both Runner X and Runner Y are feasible, because both Azure CLI and Azure PowerShell are cross-platform and support local installation on macOS and Linux.
Both proposed configurations are feasible. Azure CLI is a cross-platform command-line tool that can be installed locally on Windows, macOS, and Linux. Similarly, Azure PowerShell is cross-platform because it runs on PowerShell Core, enabling local installation and execution on Windows, macOS, and Linux. This allows Runner X (PowerShell on macOS) and Runner Y (CLI on Linux) to run as intended.

Step-by-Step Solution

1
Analyze the requirements for Runner X.
Runner X requires running Azure PowerShell scripts locally on macOS.
Identify the operating system (macOS) and the required tool (Azure PowerShell).
2
Determine the compatibility of Azure PowerShell on macOS.
Azure PowerShell runs on PowerShell Core, which is supported on macOS. Therefore, Runner X is feasible.
Verify if the tool can run locally on the specified operating system.
3
Analyze the requirements for Runner Y.
Runner Y requires running Azure CLI commands locally on Red Hat Enterprise Linux (RHEL).
Identify the operating system (Linux) and the required tool (Azure CLI).
4
Determine the compatibility of Azure CLI on Linux.
Azure CLI is cross-platform and has native packages for Linux distributions including RHEL. Therefore, Runner Y is feasible.
Verify if the tool can run locally on the specified operating system.

Key Concept

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