DEV Community

Cover image for Using PowerShell Core on macOS

Using PowerShell Core on macOS

Tidjani Belmansour, Ph.D. on January 10, 2020

I love my MacBook Pro and I like to work on macOS (although Microsoft is bringing more and more of the features I love to Windows 10). I'm also a b...
Collapse
 
poddarpr profile image
poddarpr

Hi Tidjani, to use the powersheel in MacOS, besides installing powershell core, do we also need to install azure cli?

Collapse
 
tidjani profile image
Tidjani Belmansour, Ph.D.

No, you don't need to unless you're planning to use both.

Both will help you achieve the same thing. However, Azure CLI uses a syntax that is more familiar to those who used to use the Bash command line.

Collapse
 
alexanderviken profile image
Alexander Viken

I would suggest to use Azure CLI over PS.Az unless you plan to write and run complex PS scripts. As a bonus the Azure CLI also works in your native Mac shell

Collapse
 
tidjani profile image
Tidjani Belmansour, Ph.D.

Hey Alexander,

thanks for your comment. As I mentioned in the post, I use the Azure CLI on a regular basis too. As a bonus point, some of the Azure CLI commands are idempotent, whereas Azure PowerShell aren't.

The point here isn't to recommend one over the other. It is to highlight that whether you choose one or the other, you have the possibility to use them on Windows, macOS or Linux.

Keep in mind that Windows IT Pros are likely to be more used to PowerShell command line rather than a bash-based command line.

Cheers !

Tidjani