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?
- Azure PowerShell can be installed and run locally on Linux because it supports cross-platform execution via PowerShell Core.Answer
- BAzure PowerShell is restricted to Windows operating systems and cannot be installed or run locally on a Linux workstation.
- CAzure PowerShell cmdlets can only be executed in a browser-based environment using Azure Cloud Shell on Linux.
- DThe 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
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