Question

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

A systems administrator needs to run a script containing Azure PowerShell cmdlets locally on a workstation running Linux. Which statement correctly describes the capability of Azure PowerShell for this task?

  1. Azure PowerShell can be installed and run locally on Linux because it supports cross-platform execution via PowerShell Core.Answer
  2. B
    Azure PowerShell is restricted to Windows operating systems and cannot be installed or run locally on a Linux workstation.
  3. C
    Azure PowerShell cmdlets can only be executed in a browser-based environment using Azure Cloud Shell on Linux.
  4. D
    The administrator must use the Azure CLI locally because it is the only command-line tool that supports Linux.

Answer

Azure PowerShell can be installed and run locally on Linux because it supports cross-platform execution via PowerShell Core.
Azure PowerShell is cross-platform. By installing PowerShell Core on Linux, administrators can install the Az PowerShell module and run Azure PowerShell cmdlets natively on a Linux machine.

Step-by-Step Solution

1
Identify the operating system requirements for the administrative task.
The target workstation is running Linux.
Understanding the local environment is necessary to determine tool compatibility.
2
Evaluate the cross-platform capabilities of Azure PowerShell.
Azure PowerShell is compatible with Windows, macOS, and Linux operating systems via PowerShell Core.
This determines whether the local script execution is supported on Linux.

Key Concept

Azure command-line management tools, including Azure CLI and Azure PowerShell, are cross-platform and can be run locally on Windows, macOS, and Linux.
Estimated Time:1m 0s
Rate this question