Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 (?) , you can switch to a simple comment.
Switch to a voting comment New
TheSwedishGuy
Highly Voted 3 years, 6 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 234 times
Mole857
5 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, 4 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 ago
You don't need Azure CLI to run Powershell script.
upvoted 21 times
wangyindong
2 years, 3 months ago
then how can you create azure resources which asked in the question?
upvoted 2 times
...
sdokmak
2 years, 7 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 4 times
...
...
[Removed]
3 years, 3 months ago
Tack så mycket!
upvoted 5 times
...
...
Nujjy
Highly Voted 4 years, 4 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
...
Nathan12345
Most Recent 1 month, 1 week ago
Selected Answer: B
B. No, thats incorrect the is no core 6.0
upvoted 1 times
...
Nonickname6
1 month, 2 weeks ago
Selected Answer: B
Requires powershell module
upvoted 1 times
...
Nonickname6
1 month, 2 weeks ago
Selected Answer: B
Core isnt enough, need to install entire module
upvoted 1 times
...
Erasable_Mak
1 month, 3 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
2 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
3 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
3 months, 4 weeks ago
It's NO
upvoted 1 times
...
426cab0
7 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
7 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
8 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
8 months, 3 weeks ago
Selected Answer: B
The answer is NO
upvoted 1 times
...
darkodarko99
9 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
9 months, 3 weeks ago
Selected Answer: B
Should be “B” no “azurecli installed” is my giveaway
upvoted 1 times
...
Warnerss
10 months, 2 weeks ago
Selected Answer: B
Azure power Shell is required
upvoted 1 times
...
Fulmi
11 months, 1 week ago
Was in my exam 30 oct. 2023 but in a different way. I was asked if I can run azure with a powershell module install on MacOS and I answered yes
upvoted 5 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 ...