Soru

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

A system administrator is evaluating command-line tools for managing Azure resources locally on their workstation. Which of the following statements are correct regarding the capabilities and platform support of both Azure CLI and Azure PowerShell? (Select TWO)

  1. Both tools can be installed and executed locally on Windows, macOS, and Linux operating systems.Cevap
  2. Both tools support interactive command execution and scripting to automate Azure resource management.Cevap
  3. C
    Azure CLI can only be installed on Linux and macOS, whereas Azure PowerShell is restricted to Windows operating systems.
  4. D
    Both tools require an active web browser and a connected Azure Storage account to execute commands.

Cevap

Both tools can be installed and executed locally on Windows, macOS, and Linux operating systems, and both tools support interactive command execution and scripting to automate Azure resource management.
The correct statements describe the cross-platform nature and dual usage modes of both Azure CLI and Azure PowerShell. Both tools can be installed locally on Windows, macOS, and Linux, and both support both interactive execution and scripting.

Adım Adım Çözüm

1
Identify the installation capabilities of Azure CLI and Azure PowerShell.
Both tools are cross-platform and can be installed locally on Windows, macOS, and Linux.
Microsoft designed both command-line tools to be cross-platform to accommodate administrators using different operating systems.
2
Determine the operational modes of both tools.
Both tools support both interactive commands and automated scripting.
Administrators can run individual commands interactively or save sequences of commands as scripts (.sh or .ps1) for automation.
3
Evaluate the requirement for storage and web browsers.
Neither tool requires a browser or a storage account for local execution.
Local CLI and PowerShell tools run directly in the OS shell and connect to Azure APIs over the network, unlike the browser-based Cloud Shell which needs Azure Storage to persist files.

Anahtar Kavram

Azure command-line management tools (Azure CLI and Azure PowerShell) features and cross-platform compatibility.
Tahmini Süre:1m 30s
Bu soruyu puanla