Azure Compliance with Regional Requirements | Microsoft Exam AZ-900

Identifying Azure Compliance with Your Company's Regional Requirements

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 macOS and has PowerShell Core 6.0 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 PowerShell Core 6.0 installed. Therefore, this solution does meet the goal.

Note: To create Azure resources using PowerShell, you would need to import the Azure PowerShell module which includes the PowerShell cmdlets required to create the resources.

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

The given solution recommends running the PowerShell script from a computer that runs macOS and has PowerShell Core 6.0 installed. Let's analyze if this solution meets the goal of creating Azure resources.

PowerShell is a powerful command-line shell and scripting language that is widely used for managing and automating Azure resources. PowerShell Core is a cross-platform version of PowerShell that can run on Windows, Linux, and macOS operating systems.

To create Azure resources using a PowerShell script, the computer running the script must have the Azure PowerShell module installed, which provides the cmdlets required to manage Azure resources. The Azure PowerShell module can be installed on both Windows and macOS operating systems.

Therefore, the solution of running the script from a computer that runs macOS and has PowerShell Core 6.0 installed is a valid solution, provided that the Azure PowerShell module is also installed on that computer. If the Azure PowerShell module is not installed, the solution would not meet the goal of creating Azure resources.

In summary, if the recommended computer configuration has the Azure PowerShell module installed, then the solution meets the goal of creating Azure resources. Otherwise, the solution does not meet the goal. Therefore, the answer to this question is: Option A, Yes.