How to Install PowerShell Core in Ubuntu Linux VM in Azure
Today I will show you how you can install PowerShell Core in the Ubuntu Linux VM. If you are from Linux background and want to manage workloads in Azure it’s very important that you should install PowerShell Core in Linux VM and later you can import the Az Module. You can follow this post for those steps.
First, download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
Check the downloaded package directory
In next step register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
Now Update the list of products
sudo apt-get update
In next step enable the “universe” repositories
sudo add-apt-repository universe
At last Install PowerShell
sudo apt-get install -y powershell
You can see that Powershell has been installed. Enjoy!!!