Contents

How to install and update Azure PowerShell 7

Let’s keep it easy with these one-liner’s you can use for Windows as well as Linux.

One-liner to install or update PowerShell 7 on Windows 10

1
2
3
# One-liner to install or update PowerShell 7 on Windows 10

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
/how-to-install-powershell-7/2021-08-07_111612.png
.
/how-to-install-powershell-7/2021-08-07_111613.png
.

One-liner to install or update PowerShell 7 on Linux

1
2
# One-liner to install or update PowerShell 7 on Linux
wget https://aka.ms/install-powershell.sh; sudo bash install-powershell.sh; rm install-powershell.sh
/how-to-install-powershell-7/2021-08-07_111614.png
.

Install PowerShell 7 using winget

1
2
# Install PowerShell 7 using winget
winget install PowerShell
Tip
You can start your PowerShell 7 session with pwsh
2021-08-07_111615.png
.