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?
- ADeploy a Windows-based virtual machine, because Azure PowerShell cmdlets cannot run locally on macOS.
- Install PowerShell and the Az PowerShell module on the macOS laptop.Answer
- CInstall the Azure CLI, because Azure PowerShell cmdlets are only supported on Windows.
- DUse the Azure Portal, because command-line management of Azure resources is not supported on macOS.
Answer
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.
Step-by-Step Solution
Key Concept
Cross-platform support of Azure management tools
Estimated Time:45s