Exam: AZ-900: Microsoft Azure Fundamentals 0 Likes

Would you be able to run the script on a machine that has macOS and (AZ-900)

Updated on 05/24/2024

An administrator needs to run a script written in PowerShell. This script is going to create a virtual machine in Azure.

Would you be able to run the script on a machine that has macOS and PowerShell core installed?

A) Yes.
B) No.


Solution

Correct answer: A) Yes.
The administrator would be able to run the PowerShell script to create a virtual machine in Azure on a machine that has macOS and PowerShell Core installed. PowerShell Core is a cross-platform version of PowerShell that is designed to run on various operating systems, including Windows, macOS, and Linux.
PowerShell Core, also known as PowerShell 6 and later, is an open-source project from Microsoft that extends the capabilities of Windows PowerShell to non-Windows platforms. It is specifically designed to be cross-platform and is supported on macOS.

To run the script on macOS with PowerShell Core:
Install PowerShell Core on the macOS machine.
Open the PowerShell Core terminal.
Navigate to the directory where the PowerShell script is located.
Run the script using the PowerShell Core environment.
Keep in mind that while PowerShell Core is cross-platform, there might be differences in certain cmdlets and functionalities between PowerShell Core and the Windows PowerShell version. It's a good practice to test and ensure that the script is compatible with PowerShell Core, especially if it relies on features specific to Windows PowerShell.

Category: Azure architecture and services

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.