exam questions

Exam AZ-900 All Questions

View all questions & answers for the AZ-900 exam

Exam AZ-900 topic 1 question 167 discussion

Actual exam question from Microsoft's AZ-900
Question #: 167
Topic #: 1
[All AZ-900 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
TheSwedishGuy
Highly Voted 3 years, 8 months ago
I can't believe there has been 101 replies to this comment section and not one clear answer. So let me provide it easily for you guys: 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. Therefore, the answer should be B, No.
upvoted 237 times
Mole857
7 months ago
Agreed - Just Powershell Core 6.0 is not sufficient. The Azure PowerShell module also needs to be installed.
upvoted 1 times
...
Chandu2259
1 year, 6 months ago
PowerShell 7.0.6 LTS and PowerShell 7.1.3 or higher is the recommended version of PowerShell for use with the Az PowerShell module on all platforms.
upvoted 9 times
...
josephbark
3 years, 2 months ago
You don't need Azure CLI to run Powershell script.
upvoted 21 times
wangyindong
2 years, 5 months ago
then how can you create azure resources which asked in the question?
upvoted 2 times
...
sdokmak
2 years, 9 months ago
yup, you don't need Azure CLI tools to script Azure VM deployments in powershell, although would be easier. And even if you wanted to, you can still include the azure cli installation and imports as part of the script.
upvoted 5 times
...
...
[Removed]
3 years, 5 months ago
Tack så mycket!
upvoted 5 times
...
...
Nujjy
Highly Voted 4 years, 6 months ago
These questions are poorly worded. You should still need to install the Az module inside powershell core for this to run.
upvoted 30 times
...
PN60
Most Recent 1 month, 1 week ago
The answer is No because its not a straight Yes - refer CoPilot: Yes, you can use a computer that runs macOS and has PowerShell Core 6.0 installed to run a PowerShell script that creates Azure resources . While PowerShell Core 6.0 doesn't have full feature parity with Windows PowerShell, it does support the necessary modules for managing Azure resources2 . You'll need to install the Azure PowerShell module using the command: sh Copy pw sh Install-Module -Name Az -AllowClobber -Scope CurrentUser After that, you can connect to Azure using: sh Copy Connect-AzAccount This setup will allow you to manage your Azure resources directly from your macOS machine3
upvoted 1 times
...
Nathan12345
3 months, 1 week ago
Selected Answer: B
B. No, thats incorrect the is no core 6.0
upvoted 1 times
...
Nonickname6
3 months, 2 weeks ago
Selected Answer: B
Requires powershell module
upvoted 1 times
...
Nonickname6
3 months, 2 weeks ago
Selected Answer: B
Core isnt enough, need to install entire module
upvoted 1 times
...
Erasable_Mak
3 months, 4 weeks ago
Answer: A. Yes Explanation: PowerShell Core 6.0 (now known as PowerShell 7) is a cross-platform version of PowerShell that can run on Windows, macOS, and Linux. It allows you to execute PowerShell scripts on non-Windows operating systems, including macOS. macOS: With PowerShell Core installed, a macOS computer can run PowerShell scripts just like a Windows machine. Since the solution involves running the PowerShell script from a macOS computer with PowerShell Core 6.0 installed, this configuration meets the goal of running a PowerShell script to create Azure resources.
upvoted 1 times
...
NoursBear
4 months, 2 weeks ago
WIth Powershell Core for Mac OS you need to import Azure module. Also check out question 443 and read the comments there. The answer here should be No. The correct answer with Yes was in a previous question
upvoted 1 times
...
e3ddceb
5 months ago
A. Yes PowerShell Core 6.0 is a cross-platform scripting language that runs on Windows, macOS, and Linux. It can be used to manage Azure resources. Therefore, a macOS computer with PowerShell Core 6.0 installed would meet the requirements to run a PowerShell script that creates Azure resources.
upvoted 2 times
...
siculoct
5 months, 4 weeks ago
It's NO
upvoted 1 times
...
426cab0
9 months, 1 week ago
B. No PowerShell Core 6.0 is not officially supported on macOS. While PowerShell Core is cross-platform and can run on macOS, the specific version 6.0 mentioned in the solution is outdated, and it's recommended to use a newer version for compatibility and support reasons. Additionally, while PowerShell Core is cross-platform, certain Azure PowerShell modules or cmdlets may have dependencies or limitations specific to Windows environments. Therefore, the recommended approach would be to run the PowerShell script from a computer running Windows with a supported version of PowerShell installed, such as Windows PowerShell or PowerShell 7.x (PowerShell Core). This ensures compatibility and support for Azure PowerShell modules and cmdlets.
upvoted 1 times
...
Dhamus
9 months, 1 week ago
Install a supported version of PowerShell version 7 or higher. https://learn.microsoft.com/en-us/powershell/azure/install-azps-macos?view=azps-11.3.0
upvoted 2 times
...
alaazarrouk
10 months, 1 week ago
PowerShell Core 6.0, it's cross-platform version of PowerShell that works on Windows, macOS, and Linux
upvoted 1 times
...
AhmeDMoha
10 months, 3 weeks ago
Selected Answer: B
The answer is NO
upvoted 1 times
...
darkodarko99
11 months ago
Selected Answer: B
The answer is shortly NO! https://learn.microsoft.com/en-us/answers/questions/1016820/can-we-run-powershell-script-from-a-computer-that
upvoted 1 times
...
Justin_ts
11 months, 3 weeks ago
Selected Answer: B
Should be “B” no “azurecli installed” is my giveaway
upvoted 1 times
...
Warnerss
1 year ago
Selected Answer: B
Azure power Shell is required
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...