Create Azure Resources with PowerShell | Exam AZ-900: Microsoft Azure Fundamentals

Run PowerShell Script to Create Azure Resources

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

The recommendation to run the PowerShell script from a computer that runs Windows 10 and has the Azure PowerShell module installed can meet the goal, but it depends on the specific requirements and limitations of the scenario.

The Azure PowerShell module is a collection of cmdlets that allow administrators to manage Azure resources from the PowerShell command line. Running the PowerShell script from a computer with the Azure PowerShell module installed can simplify the process of creating and managing Azure resources.

However, there are other factors to consider when running a PowerShell script that creates Azure resources. Some factors that can affect the suitability of the recommended solution include:

  • Access and permissions: The computer running the PowerShell script must have the appropriate access and permissions to manage Azure resources. The recommended solution assumes that the computer has the necessary permissions to create and manage Azure resources.

  • Script complexity: The complexity of the PowerShell script can impact the performance and stability of the computer running the script. Large or complex scripts may require more resources or a more robust computer configuration to run effectively.

  • Network connectivity: The computer running the script must have a stable and reliable network connection to the Azure environment. This is especially important for scripts that create or modify Azure resources that are critical to the operation of a service or application.

In summary, the recommended solution to run the PowerShell script from a computer that runs Windows 10 and has the Azure PowerShell module installed can meet the goal of creating Azure resources, but other factors may impact the suitability of this solution depending on the specific requirements and limitations of the scenario.