Creating Azure Resources with PowerShell | AZ-900 Exam | Microsoft

Run PowerShell Script for Azure Resource Creation

Prev Question Next Question

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

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.

Solution: Run the script from a computer that runs Windows 10 and has the Azure PowerShell module installed.

Does this meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

A

A PowerShell script is a file that contains PowerShell cmdlets and code. A PowerShell script needs to be run in PowerShell.

In this question, the computer has the Azure PowerShell module installed. Therefore, this solution does meet the goal.

https://docs.microsoft.com/en-us/powershell/scripting/components/ise/how-to-write-and-run-scripts-in-the-windows-powershell-ise?view=powershell-6

Yes, the solution of running the script from a computer that runs Windows 10 and has the Azure PowerShell module installed meets the goal of creating Azure resources using a PowerShell script.

The Azure PowerShell module provides a set of cmdlets that enable the automation of Azure management tasks through the PowerShell scripting language. Running the script from a computer with the Azure PowerShell module installed allows the Azure administrator to use these cmdlets to create and manage Azure resources.

Windows 10 is a suitable operating system for running the Azure PowerShell module, and it is commonly used by administrators for this purpose. However, other operating systems such as Windows Server, macOS, and Linux can also be used to run the Azure PowerShell module.

It is important to note that in addition to the computer configuration, the Azure administrator must also have the appropriate permissions and access to the Azure subscription to be able to create Azure resources using the PowerShell script.