Soru

Zorluk: OrtaAzure Portal, CLI, PowerShell, and Cloud Shell

An IT administrator needs to run a deployment script from a local macOS workstation to automate the creation of several resources in Azure. The script is written using Verb-Noun command syntax, such as `New-AzResourceGroup`. Which tool must be installed locally on the macOS workstation to execute this script?

  1. A
    Azure Portal
  2. B
    Azure CLI
  3. Azure PowerShellCevap
  4. D
    Azure Cloud Shell

Cevap

Azure PowerShell
The correct answer is Azure PowerShell. Azure PowerShell is a command-line tool that uses Verb-Noun cmdlets (like `New-AzResourceGroup`) to manage Azure resources. It is cross-platform and can be installed locally on macOS, Windows, and Linux.

Adım Adım Çözüm

1
Analyze the script's command syntax.
The script uses Verb-Noun syntax (e.g., `New-AzResourceGroup`), which is characteristic of PowerShell cmdlets.
Identifying the syntax helps determine whether Azure CLI (which uses `az` commands) or Azure PowerShell is required.
2
Determine the installation requirement.
The script must run locally on a macOS workstation, which rules out Azure Portal (a GUI) and Azure Cloud Shell (a browser-based environment).
The scenario specifically asks for a tool installed locally on the workstation.
3
Verify cross-platform compatibility for the selected tool.
Azure PowerShell is supported on macOS via PowerShell Core.
This confirms that Azure PowerShell can be installed on macOS to run the script.

Anahtar Kavram

Azure PowerShell is a cross-platform command-line tool that uses Verb-Noun cmdlets and can be installed on Windows, macOS, and Linux.
Tahmini Süre:1m 0s
Bu soruyu puanla