nerdexam
MicrosoftMicrosoft

AZ-900 · Question #423

AZ-900 Question #423: Real Exam Question with Answer & Explanation

The correct answer is A: a computer that runs Windows 11 and has the Azure CLI tools 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

Explanation

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.

Common mistakes.

  • B. 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.
  • C. 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.

Concept tested. Running Azure PowerShell scripts and CLI

Reference. 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 PracticeBrowse All AZ-900 Questions