Installing Azure PowerShell Module in Your Local Windows PowerShell
of resources in Microsoft Azure Portal, so it's very useful and we'd better have it installed in our local Windows PowerShell. We can simply follow the below steps to achieve this.
I. Firstly launch Windows Powershell with an administrator’s credential and execute the $PSVersionTable.PSVersion command to check the current version of PowerShell that’s been installed. As per the below screenshot, the version installed in my machine is 5.1. This is the minimum version that’s required to install the Azure PowerShell module.

II. Install .NET Framework 4.8 in your Windows system. In my case the install program indicates me that it’s already been installed.
III. In PowerShell run the Update-Module PowerShellGet -Force command to install the latest version of PowerShellGet. PowerShellGet is a module with commands for discovering, installing, updating and publishing PowerShell artefacts. We’ll leverage its functions to install the Azure PowerShell module.
If you haven’t had the PowerShellGet module installed, you may encounter the below error message as I did.

If that’s the case, we can use the Install-Module -Name PowerShellGet -Force command to install it first, and then run the above ‘Update-Module’ command again. While updating, the below message will appear in your PowerShell window indicating the update process is on going.

IV. Once finished, execute the Install-Module -Name Az -AllowClobber command to install the Azure PowerShell module. Type ‘Y’ or ‘A’ when the below message displays and click the ‘Enter’ button.

Again, the below information displays indicating the installation is in process. Wait for it to be finished.

V. Run the Get-InstalledModule command to check all the modules installed. As per the below screenshot, you’ll see from the ‘Description’ field that a series of Auzre PowerShell modules have been installed.
Comments
Post a Comment