Creating Azure Resources: Recommended Computer Configuration | AZ-900 Exam Prep

Recommended Computer Configuration

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 Chrome OS and uses Azure Cloud Shell.

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.

With the Azure Cloud Shell, you can run PowerShell cmdlets and scripts in a Web browser. You log in to the Azure Portal and select the Azure Cloud Shell option.

This will open a PowerShell session in the Web browser. The Azure Cloud Shell has the necessary Azure PowerShell module installed.

Note: to run a PowerShell script in the Azure Cloud Shell, you need to change to the directory where the PowerShell script is stored.

https://docs.microsoft.com/en-us/azure/cloud-shell/quickstart-powershell

The solution proposed in the scenario to run a PowerShell script from a computer running Chrome OS and using Azure Cloud Shell is not recommended. Therefore, the answer is B, No.

Azure Cloud Shell is a browser-based shell environment provided by Azure that runs in a virtual machine (VM) hosted in the cloud. It provides a command-line interface for interacting with Azure resources and can run various command-line tools, including PowerShell.

However, running a PowerShell script from a computer running Chrome OS has limitations. Chrome OS is a lightweight operating system designed for web-based applications and relies heavily on cloud-based services. It does not have the full capabilities of a traditional operating system, such as Windows or macOS, and does not support running PowerShell scripts natively.

Therefore, to run a PowerShell script, you need a computer that runs a full-featured operating system, such as Windows or macOS, and has PowerShell installed. Alternatively, you can use a virtual machine running Windows or a container running PowerShell to execute the script.

In summary, the proposed solution in the scenario does not meet the goal of running a PowerShell script to create Azure resources since it is not feasible to run a PowerShell script from a computer running Chrome OS.