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 Linux and has the Azure CLI tools installed.
Does this meet the goal?
Click on the arrows to vote for the correct answer
A. B.B
A PowerShell script is a file that contains PowerShell cmdlets and code. A PowerShell script needs to be run in PowerShell.
PowerShell can now be installed on Linux. However, the question states that the computer has Azure CLI tools, not PowerShell installed. Therefore, this solution does not 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-6The solution provided of running the PowerShell script from a computer that runs Linux and has the Azure CLI tools installed, is not a suitable option as a solution for the given scenario. Therefore, the correct answer to this question is B. No.
The reason for this is that PowerShell is a scripting language developed by Microsoft and it is designed to run on Windows OS. Therefore, running PowerShell scripts on a Linux computer may not work as expected and may lead to errors or other issues.
Furthermore, although Azure CLI tools are available for Linux, they are not designed to execute PowerShell scripts. Azure CLI tools are used for managing Azure resources using command-line interfaces, while PowerShell scripts are used to automate the deployment and configuration of Azure resources using PowerShell cmdlets.
Therefore, to properly execute the PowerShell script, it is recommended to run it from a computer that runs the Windows OS and has the Azure PowerShell module installed. This will ensure that the PowerShell script executes correctly and the Azure resources are created without any issues.
In summary, the given solution of running the PowerShell script from a computer that runs Linux and has the Azure CLI tools installed does not meet the goal and is not a suitable option for the given scenario.