Powershell – Error on installing Azure Powershell

azurepowershell

I'm following this tutorial to install Azure PowerShell. And, on step 2 of the tutorial I'm getting the following error when I run the following command specified in the tutorial:

PS C:\Windows\system32> Install-Module AzureRM -AllowClobber

Install-Module : A parameter cannot be found that matches parameter name 'AllowClobber'.
At line:1 char:24
+ Install-Module AzureRM -AllowClobber
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Install-Module], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Install-Module

Best Answer

We can download this MSI package to install it.

Here is the Azure PowerShell version 4.4.1, please download it and install it.

By the way, we can use this command to install it.

Install-Module -Name AzureRM