powershell / az 모듈 설치

2025. 11. 7. 14:15Azure

참고 사이트

https://github.com/PowerShell/PowerShell/releases

 

Releases · PowerShell/PowerShell

PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

github.com

https://learn.microsoft.com/en-us/powershell/azure/install-azure-powershell?view=azps-14.6.0&viewFallbackFrom=azps-2.5.0

 

How to install Azure PowerShell

Azure PowerShell is available to install for Windows, Linux, and macOS. It can also be run from Azure Cloud Shell and in a Docker container.

learn.microsoft.com

 

 

PowerShell version 확인
PS C:\Users\cody> $PSVersionTable.PSVersion

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      5      4

 

 

PowerShell 을 이용한 AZ 모듈 설치
#AZ 모듈 설치
PS C:\Users\cody> Install-Module -Name Az -AllowClobber -Scope CurrentUser

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the
Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y



#설치 확인
PS C:\Users\cody> Get-Module -ListAvailable Az

    Directory: C:\Users\cody\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     14.6.0                Az                                  Core,Desk



#AZ 로그인
Connect-AzAccount