# Unable to Install-Module AzureRM

**URL:** <https://forums.powershell.org/t/unable-to-install-module-azurerm/6984>\
**Category:** PowerShell Help\
**Created:** [August 13, 2016, 5:51am UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984 "2016-08-13T05:51:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![007maran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/007maran/32/603_2.png) [@007maran](https://forums.powershell.org/u/007maran)\
**Post date:** [August 13, 2016, 5:51am UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/1 "2016-08-13T05:51:49Z")

</div>

Running PowerShell as Administartor

install-module -Name azurerm -force

Below is the error message , any ideas why?

PS C:\WINDOWS\system32\> install-module -Name azurerm -force  
PackageManagement\Install-Package : Cannot process argument transformation on parameter ‘InstalledModuleInfo’. Cannot  
convert the “System.Object” value of type “System.Object” to type “System.Management.Automation.PSModuleInfo”.  
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1661 char:21

- … $null = PackageManagement\Install-Package @PSBoundParameters
- 

```
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```

  - CategoryInfo : InvalidData: (Microsoft.Power…InstallPackage:InstallPackage) [Install-Package], Excep  
tion
  - FullyQualifiedErrorId : ParameterArgumentTransformationError,Validate-ModuleAuthenticodeSignature,Microsoft.Powe  
rShell.PackageManagement.Cmdlets.InstallPackage

PS C:\WINDOWS\system32\>

---

<div class="post-metadata">

**Author:** ![will-anderson](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/will-anderson/32/234_2.png) [@will-anderson](https://forums.powershell.org/u/will-anderson)\
**Post date:** [August 13, 2016, 10:43am UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/2 "2016-08-13T10:43:04Z")

</div>

Hey there Manimaran,

Are you trying to install the module from a local source? Or from a PSRepository? If you’re going from the PowerShell Gallery PSRepository, I would recommend that you install all of the AzureRM modules and not rely on the Import-AzureRm from the AzureRm module. Try this:

(Find-Module _azurerm_).foreach({Install-Module -Name $PSItem.Name})

---

<div class="post-metadata">

**Author:** ![007maran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/007maran/32/603_2.png) [@007maran](https://forums.powershell.org/u/007maran)\
**Post date:** [August 13, 2016, 12:15pm UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/3 "2016-08-13T12:15:39Z")

</div>

Hey Will, Thanks for the response.  
From PSRepository. I ran the above command below is the error message I get

[1661,21: Install-Package] Cannot process argument transformation on parameter ‘InstalledModuleInfo’. Cannot convert the "  
System.Object" value of type “System.Object” to type “System.Management.Automation.PSModuleInfo”.

---

<div class="post-metadata">

**Author:** ![007maran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/007maran/32/603_2.png) [@007maran](https://forums.powershell.org/u/007maran)\
**Post date:** [August 13, 2016, 1:03pm UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/4 "2016-08-13T13:03:45Z")

</div>

Finally found the fix

removed the Azure\* folders from below locations.

%ProgramFiles%\WindowsPowerShell\Modules folder  
%ProgramFiles(x86)%\Microsoft SDKs\Azure\PowerShell

Thanks  
Mani

---

<div class="post-metadata">

**Author:** ![will-anderson](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/will-anderson/32/234_2.png) [@will-anderson](https://forums.powershell.org/u/will-anderson)\
**Post date:** [August 13, 2016, 2:29pm UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/5 "2016-08-13T14:29:59Z")

</div>

Glad you found the solution! Yeah, the AzureRm modules can get funky from time to time. Also, be sure to watch out when you use update-module against the AzureRm modules as they’ll sometimes just install the new version sibe-by-side with your older version and that can cause weirdness with the embedded dependencies in the modules.

---

<div class="post-metadata">

**Author:** ![brianlala](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@brianlala](https://forums.powershell.org/u/brianlala)\
**Post date:** [September 30, 2016, 8:51am UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/6 "2016-09-30T08:51:19Z")

</div>

Thanks Mani - I was also getting this (and this page is the only search result for it!). Your fixed worked on one of my 3 machines (there were Azure folders with older contents) but on the other 2 I’m somewhat reluctant to blow the Azure folders away as their contents were updated very recently. But worst case I suppose I could back them up first and then try.

Cheers  
Brian

---

<div class="post-metadata">

**Author:** ![y8sy](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@y8sy](https://forums.powershell.org/u/y8sy)\
**Post date:** [July 2, 2017, 8:57am UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/7 "2017-07-02T08:57:34Z")

</div>

Hi Guys, just wanted to say thanks for the posts. This helped me solve why I couldn’t install these modules. Particularly Mani with the info about deleting data in the system folders. That is what got me sorted.

Thanks

Trent.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:38pm UTC](https://forums.powershell.org/t/unable-to-install-module-azurerm/6984/8 "2024-05-16T20:38:27Z")

</div>

Closed on May 16, 2024, 8:38pm UTC


