top of page
  • tcf

azure - install powershell and az modules on windows

Updated: Jan 6



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.

Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction

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.

Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.3.1/PowerShell-7.3.1-win-x64.msi

██████████████████████████████ 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



15 views0 comments

Recent Posts

See All
bottom of page