top of page

azure - install powershell and az modules on windows

  • tcf
  • Jan 5, 2023
  • 1 min read

Updated: Jan 6, 2023



1. Install the latest powershell on windows (Follow this URL)


PS C:\WINDOWS\system32> winget search Microsoft.PowerShell

The `msstore` source requires that you view the following agreements before using.

The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?

[Y] Yes [N] No: Y

Name Id Version Source

-------------------------------------------------------

PowerShell Microsoft.PowerShell 7.3.1.0 winget

PowerShell Microsoft.PowerShell.Preview 7.4.1.0 winget

PS C:\WINDOWS\system32> winget install --id Microsoft.Powershell --source winget

Found PowerShell [Microsoft.PowerShell] Version 7.3.1.0

This application is licensed to you by its owner.

Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.

██████████████████████████████ 101 MB / 101 MB

Successfully verified installer hash

Starting package install...

Successfully installed


2. Install AZ module via powershell (Follow this URL)


Install-Module -Name Az -AllowClobber -Repository PSGallery -Force

To check Az Module version:

Get-InstalledModule -Name Az -AllVersions | Select-Object -Property Name, Version


3. Sign in

this will open up a browser for you to sign in



Bình luận


bottom of page