Home » Microsoft » AZ-900 v.2 » Does this meet the goal?
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?
A. Yes
B. No
Correct Answer: A
Explanation/Reference:
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.
References: https://docs.microsoft.com/en-us/powershell/scripting/components/ise/how-to-write-and-run-scripts-in-the-windows-powershell-ise?view=powershell-6
How To Pass AZ-900 Exam?
Microsoft AZ-900 PDF dumps.
High quality AZ-900 pdf and software. VALID exam to help you pass.
|
|
No
A is correct, because with PowerShell Core 6.0 on MacOS, AZ modules will work.
https://azure.microsoft.com/de-de/blog/azure-powershell-cross-platform-az-module-replacing-azurerm/
You don’t need Azure CLI, PowerShell with AZ modules will also work.
The computer has PowerShell Core 6.0, but it doesn’t have the Azure CLI installed. There is no mention of that in the question. You need Azure PowerShell module in addition to PowerShell to run Azure commands, such as New-AzVM.
the given answer is wrong.