As a devops engineer, we most likely would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at some point. There are few ways to do it, so let’s see how we can install PowerShell the easiest way possible.
Install PowerShell via the famous package manager Brew
Step 1. Open a terminal and update Brew:
Step 2. Upgrade new packages if any:
Step 3. Install PowerShell:
brew install --cask powershell
Step 4. Verify the installation:
➜ ~ pwsh PowerShell 7.1.3 Copyright (c) Microsoft Corporation. https://aka.ms/powershell Type 'help' to get help. PS /Users/devcoops>
brew uninstall --cask powershell
I would always consider installing any kind of software on MacOS via Brew. It’s more effective to handle things via package manager instead of bunch of .pkg files scattered around the file system.
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.