PowerShell Core 6.1 설치하기


1) Windows에서 설치
iex “& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI”

2) Linux에서 설치
wget -O – https://aka.ms/install-powershell.sh | sudo bash

3) 설치된 PowerShell 버전 확인하기
$psversiontable

4) Windows에서는 PowerShell Desktop version과 PowerShell Core 버전을 Switch하면서 사용 가능하다
powershell.exe
pwsh.exe
** Linux에서 PowerShell Core를 사용하면 그냥 pwsh만 입력하면 된다

5) PowerShell core에서 Azure 운영을 위한 Module 설치하기
Get-Module -ListAvailable
Get-Command | Measure-Object

Find-Module -Name az
Find-Module -Name az | Install-Module -AllowClobber

Get-Module -ListAvailable
Get-Command | Measure-Object

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s