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?
- 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
- BOnly Runner Y is feasible, because Azure CLI is cross-platform, whereas Azure PowerShell is restricted to Windows and cannot be installed locally on macOS.
- COnly Runner X is feasible, because Azure PowerShell is supported on macOS, whereas Azure CLI is restricted to Windows and cannot run locally on Linux.
- DNeither 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
Key Concept
Cross-platform support of Azure management tools (Azure CLI and Azure PowerShell)