nerdexam
Microsoft

AZ-900 · Question #423

An Azure administrator plans to run a PowerShell script that creates Azure resources. You need to recommend which computer configuration to use to run the script. Which three computers can run the scr

The correct answer is A. a computer that runs Windows 11 and has the Azure CLI tools installed D. a computer that runs Chrome OS and uses Azure Cloud Shell E. a computer that runs Windows 10 and has the Azure PowerShell module installed. A PowerShell script that creates Azure resources can be executed on a Windows machine with the Azure PowerShell module, or via Azure Cloud Shell from any OS, or on a Windows machine with Azure CLI if the script calls CLI commands.

Submitted by jakub_pl· Mar 5, 2026Describe Azure management and governance

Question

An Azure administrator plans to run a PowerShell script that creates Azure resources. You need to recommend which computer configuration to use to run the script. Which three computers can run the script? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • Aa computer that runs Windows 11 and has the Azure CLI tools installed
  • Ba computer that runs Linux and has the Azure CLI tools installed
  • Ca computer that runs macOS and has PowerShell Core 6.0 installed
  • Da computer that runs Chrome OS and uses Azure Cloud Shell
  • Ea computer that runs Windows 10 and has the Azure PowerShell module installed

How the community answered

(39 responses)
  • A
    72% (28)
  • B
    21% (8)
  • C
    8% (3)

Why each option

A PowerShell script that creates Azure resources can be executed on a Windows machine with the Azure PowerShell module, or via Azure Cloud Shell from any OS, or on a Windows machine with Azure CLI if the script calls CLI commands.

Aa computer that runs Windows 11 and has the Azure CLI tools installedCorrect

A computer running Windows 11 can execute PowerShell scripts. If the PowerShell script is designed to invoke Azure CLI commands, then having the Azure CLI tools installed on the Windows 11 machine enables its successful execution to create Azure resources.

Ba computer that runs Linux and has the Azure CLI tools installed

While Linux can run PowerShell (PowerShell Core), having only Azure CLI tools installed is insufficient for a PowerShell script if that script relies on Azure PowerShell cmdlets, unless it specifically calls Azure CLI commands.

Ca computer that runs macOS and has PowerShell Core 6.0 installed

A computer running macOS can run PowerShell Core 6.0, but to create Azure resources, it would also require the Azure PowerShell module to be installed within that PowerShell environment, which is not stated.

Da computer that runs Chrome OS and uses Azure Cloud ShellCorrect

Azure Cloud Shell, accessible from a web browser on any OS including Chrome OS, provides a pre-configured environment with both Azure PowerShell and Azure CLI installed, making it suitable for running PowerShell scripts to create Azure resources.

Ea computer that runs Windows 10 and has the Azure PowerShell module installedCorrect

A computer running Windows 10 with the Azure PowerShell module installed is a native and fully supported environment for executing PowerShell scripts that utilize Azure PowerShell cmdlets to create Azure resources.

Concept tested: Running Azure PowerShell scripts and CLI

Source: https://learn.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-12.0.0

Community Discussion

No community discussion yet for this question.

Full AZ-900 Practice