Install-Module errors on install of Azure and AzureRM modules - MacOsX
See original GitHub issueSteps to reproduce
Run command Install-Module Azure or Install-Module AzureRM
Expected behavior
Install PowerShell module for interacting with Azure using Azure and AzureRM commandlets
Actual behavior
Receive following error code
PackageManagement\Install-Package : Unable to find module providers (PowerShellGet). At /usr/local/microsoft/powershell/6.0.0-alpha.9/Modules/PowerShellGet/PSModule.psm1:1706 char:21
- … $null = PackageManagement\Install-Package @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidArgument: (Microsoft.Power…InstallPackage:InstallPackage) [Install-Package], Except ion
- FullyQualifiedErrorId : UnknownProviders,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Environment data
> $PSVersionTable
Name Value
PSVersion 6.0.0-alpha PSEdition Core PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} BuildVersion 3.0.0.0 GitCommitId v6.0.0-alpha.9 CLRVersion WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Azure module cannot be loaded in Mac OS
1 Answer 1 · In pwsh , run: Uninstall-AzureRm · Then: Install-Module -Name Az -AllowClobber -Scope CurrentUser · If you run Enable-AzureRmAlias , ......
Read more >Install PowerShell AzureRM module for Azure Stack Hub
Learn how to install PowerShell for Azure Stack Hub. See how to install the PowerShell AzureRM module and required API profiles.
Read more >Troubleshooting the Azure Az PowerShell module
One of the first steps you should take in troubleshooting a problem with the Azure Az PowerShell module is to enable debug logging....
Read more >Install PowerShell Az module for Azure Stack Hub
This article explains how to install the Azure PowerShell Az and compatible Azure Stack Hub administrator modules using PowerShellGet. The Az ...
Read more >Install Azure PowerShell with PowerShellGet
This article explains how to install the Azure PowerShell modules using PowerShellGet. These instructions work on Windows, Linux, and macOS ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I followed @alexandair’s advice and it worked. A step by step though is that you’ll need to do the following. (I also put the modules in my home directory, not sure if that is correct)
Install-Package -Name AzureRM.NetCore.Preview -Source https://www.powershellgallery.com/api/v2/ -ProviderName NuGet -ExcludeVersion -Destination $home/powershell/modulesImport-Module $home/powershell/modules/AzureRM.Profile.NetCore.PreviewImport-Module $home/powershell/modules/AzureRM.Resources.NetCore.PreviewImport-Module $home/powershell/modules/AzureRM.NetCore.PreviewLogin-AzureRmAccountNote: When I ran the command
Get-Module -ListAvailableAzureRM was not in the list and it seems that when you exit Powershell the AzureRM module goes away. Also, before I started I upgraded dotnet to version1.0.0-preview3-003246@dfr0 - you’ll need to raise this in the Azure Powershell repo over at https://github.com/azure/azure-powershell as this isn’t a PowerShell issue