Question

Difficulty: HardAzure Portal, CLI, PowerShell, and Cloud Shell

A developer is using a local workstation running Linux, while a database administrator is using a local workstation running Windows. Both users need to run automated scripts to manage Azure SQL databases. The developer's script is written in Azure CLI, and the database administrator's script is written in Azure PowerShell. Which statement correctly describes the compatibility of these management tools with the administrators' local operating systems?

  1. Both the Azure CLI script and the Azure PowerShell script can be executed on either the Linux or the Windows workstation, as both management tools are cross-platform.Answer
  2. B
    The Azure CLI script can only be executed on the Linux workstation, whereas the Azure PowerShell script can only be executed on the Windows workstation.
  3. C
    The Azure PowerShell script can be executed on the Windows workstation, but it must be run within Azure Cloud Shell on the Linux workstation because Linux does not support local PowerShell execution.
  4. D
    The Azure CLI script can be executed on the Linux workstation, but it must be run within the Azure Portal on the Windows workstation because Windows does not support local Azure CLI execution.

Answer

Both the Azure CLI script and the Azure PowerShell script can be executed on either the Linux or the Windows workstation, as both management tools are cross-platform.
The correct answer is that both the Azure CLI script and the Azure PowerShell script can be executed on either operating system. Both Azure CLI and Azure PowerShell are cross-platform tools that can be installed locally on Windows, macOS, and Linux. This allows administrators to run their preferred tool regardless of their local workstation's operating system.

Step-by-Step Solution

1
Identify the scripting environments and command structures used in the scenario.
The developer uses Azure CLI, and the database administrator uses Azure PowerShell.
Determining the specific tools helps evaluate their cross-platform capabilities.
2
Analyze the cross-platform availability of Azure CLI.
Azure CLI runs on Windows, macOS, and Linux.
To determine if the developer's script is restricted by the operating system.
3
Analyze the cross-platform availability of Azure PowerShell.
Azure PowerShell runs on Windows, macOS, and Linux (via PowerShell Core).
To determine if the database administrator's script is restricted by the operating system.
4
Compare the findings against the provided choices.
Select the option stating that both tools are fully cross-platform and can be run locally on either operating system.
Confirms that neither tool is bound to a single operating system.

Key Concept

Cross-platform support of Azure management tools
Estimated Time:2m 0s
Rate this question