Exam: AZ-900: Microsoft Azure Fundamentals 0 Likes

An Azure administrator plans to run a PowerShell script that creates (AZ-900)

Updated on 07/11/2024

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 Linux and has the Azure CLI tools installed.

Does this meet the goal?

A) Yes.
B) No.


Solution

Correct answer: B) No.
The correct solution would be to run the PowerShell script from a computer that runs Windows and has the Azure PowerShell module installed.

Explanation:
The PowerShell script is designed to create Azure resources, which means it is written in PowerShell, a Windows-based scripting language.
While it is possible to run PowerShell scripts on a Linux computer using tools like PowerShell Core, the Azure PowerShell module is primarily designed to work on Windows.
The Azure CLI (Command-Line Interface) is a separate tool from the Azure PowerShell module, and it is used for managing Azure resources through a command-line interface. The Azure CLI can be used on both Windows and Linux, but it is not a direct replacement for the Azure PowerShell module.
Running the PowerShell script from a Linux computer with the Azure CLI tools installed would not be the recommended approach, as the script may not function correctly or may require additional configuration to work on a non-Windows platform.

Therefore, the correct recommendation would be to run the PowerShell script from a computer that runs Windows and has the Azure PowerShell module installed, as this would be the most compatible and supported environment for the script.

Category: Azure management and governance

There are no comments yet.

Authentication required

You must log in to post a comment.
Log in to like this solution

Log in

Support us!
Subscribe Now

Cookies Consent

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All" you consent to our use of cookies. Privacy Policy.