Soru

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

An administrator wants to run Azure PowerShell cmdlets locally on a personal laptop running macOS to manage Azure virtual machines. Which action should the administrator take to run these cmdlets?

  1. A
    Deploy a Windows-based virtual machine, because Azure PowerShell cmdlets cannot run locally on macOS.
  2. Install PowerShell and the Az PowerShell module on the macOS laptop.Cevap
  3. C
    Install the Azure CLI, because Azure PowerShell cmdlets are only supported on Windows.
  4. D
    Use the Azure Portal, because command-line management of Azure resources is not supported on macOS.

Cevap

Install PowerShell and the Az PowerShell module on the macOS laptop.
Azure PowerShell is cross-platform. Installing PowerShell (PowerShell Core) and the Az PowerShell module allows the administrator to run Azure PowerShell cmdlets locally on macOS, Windows, and Linux.

Adım Adım Çözüm

1
Determine the administrator's operating system and management tool preference.
The administrator is using macOS and wants to run Azure PowerShell cmdlets locally.
This establishes the environment constraints and the target command-line interface.
2
Recall the compatibility of Azure PowerShell across different operating systems.
Azure PowerShell is cross-platform because it relies on PowerShell Core, which runs on Windows, macOS, and Linux.
To verify if the requested configuration is supported on macOS.
3
Identify the required components to enable Azure PowerShell on macOS.
Installing PowerShell (the cross-platform version of PowerShell) and the Az PowerShell module is required.
To determine the practical action required to run the cmdlets locally.

Anahtar Kavram

Cross-platform support of Azure management tools
Tahmini Süre:45s
Bu soruyu puanla