Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install AzureRM on Powershell Core ubuntu 17.10 #5579

Closed
wlami opened this issue Feb 19, 2018 · 5 comments
Closed

Cannot install AzureRM on Powershell Core ubuntu 17.10 #5579

wlami opened this issue Feb 19, 2018 · 5 comments
Assignees

Comments

@wlami
Copy link

wlami commented Feb 19, 2018

Description

Cannot install AzureRM on powershell under Ubuntu 17.10

Script/Steps for Reproduction

First step of installing AzureRM:

$DebugPreference = "Continue"
Install-Module -Name AzureRM

Module Version

Get-Module -Name AzureRM -ListAvailable

<empty>

(Empty output as I am not able to install AzureRM module.

Environment Data

$PSVersionTable

Name                           Value                                                                                                                                                                       
----                           -----                                                                                                                                                                       
PSVersion                      6.0.1                                                                                                                                                                       
PSEdition                      Core                                                                                                                                                                        
GitCommitId                    v6.0.1                                                                                                                                                                      
OS                             Linux 4.13.0-32-generic #35-Ubuntu SMP Thu Jan 25 09:13:46 UTC 2018                                                                                                         
Platform                       Unix                                                                                                                                                                        
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                     
PSRemotingProtocolVersion      2.3                                                                                                                                                                         
SerializationVersion           1.1.0.1                                                                                                                                                                     
WSManStackVersion              3.0                                                                                                                                                                         

This is an Ubuntu 17.10 machine. pwsh installed using the ppa.

Debug Output

[...]
DEBUG: 00:00:29.4179110 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureRM.TrafficManager'&$skip=0&$top=40'.
DEBUG: 00:00:29.6383992 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureRM.TrafficManager'&$skip=0&$top=40'.
DEBUG: 00:00:29.6453298 '38' packages received in the last request.
DEBUG: 00:00:29.6629810 There are '0' registered sources in 'NuGet' provider.
DEBUG: 00:00:29.6639053 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:29.6647969 Source 'https://www.powershellgallery.com/api/v2/' is validated.
DEBUG: 00:00:29.6690039 Calling 'NuGetRequest'::'GetPackageById', 'AzureRM.UsageAggregates'.
DEBUG: 00:00:29.6707463 Calling 'NuGetPackageRepository'::'FindPackagesById', 'AzureRM.UsageAggregates'.
DEBUG: 00:00:29.6724651 Calling 'NuGetPackageFeed2'::'FindPackage', 'AzureRM.UsageAggregates'.
DEBUG: 00:00:29.6740774 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:29.6774072 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureRM.UsageAggregates'&$skip=0&$top=40'.
DEBUG: 00:00:30.0464750 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureRM.UsageAggregates'&$skip=0&$top=40'.
DEBUG: 00:00:30.0552652 '38' packages received in the last request.
DEBUG: 00:00:30.1014028 There are '0' registered sources in 'NuGet' provider.
DEBUG: 00:00:30.1071619 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:30.1124258 Source 'https://www.powershellgallery.com/api/v2/' is validated.
DEBUG: 00:00:30.1173662 Calling 'NuGetRequest'::'GetPackageById', 'AzureRM.Websites'.
DEBUG: 00:00:30.1278407 Calling 'NuGetPackageRepository'::'FindPackagesById', 'AzureRM.Websites'.
DEBUG: 00:00:30.1323970 Calling 'NuGetPackageFeed2'::'FindPackage', 'AzureRM.Websites'.
DEBUG: 00:00:30.1373673 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:30.1438056 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureRM.Websites'&$skip=0&$top=40'.
DEBUG: 00:00:30.3979409 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureRM.Websites'&$skip=0&$top=40'.
DEBUG: 00:00:30.4065261 '38' packages received in the last request.
DEBUG: 00:00:30.4288225 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:30.5566693 Calling 'NuGetClient'::'InstallPackage'.                                                                                                                                            DEBUG: 00:00:33.0322365 Calling 'NuGetClient'::'InstallPackageLocal'.                                                                                                                                       DEBUG: 00:00:33.2929401 /tmp/652702334/AzureRM.profile/AzureRM.profile.nupkg                                                                                                                                DEBUG: 00:00:33.6994418 Returning the call 'NuGetClient'::'InstallPackageLocal'.                                                                                                                            DEBUG: 00:00:34.0333865 Returning the call 'NuGetClient'::'InstallSinglePackage'.                                                                                                                           DEBUG: 00:00:34.2725543 Calling 'NuGetClient'::'InstallPackage'.                                                                                                                                            DEBUG: 00:00:35.3219212 Calling 'NuGetClient'::'InstallPackageLocal'.                                                                                                                                       DEBUG: 00:00:35.5690274 /tmp/652702334/Azure.Storage/Azure.Storage.nupkg                                                                                                                                    DEBUG: 00:00:35.8399776 Returning the call 'NuGetClient'::'InstallPackageLocal'.                                                                                                                            DEBUG: 00:00:36.1582049 Returning the call 'NuGetClient'::'InstallSinglePackage'.                                                                                                                           DEBUG: 00:00:36.3777379 Calling 'NuGetClient'::'InstallPackage'.                                                                                                                                            DEBUG: 00:00:37.1061307 Calling 'NuGetClient'::'InstallPackageLocal'.                                                                                                                                       DEBUG: 00:00:37.2923325 /tmp/652702334/AzureRM.AnalysisServices/AzureRM.AnalysisServices.nupkg                                                                                                              DEBUG: 00:00:37.5122845 Returning the call 'NuGetClient'::'InstallPackageLocal'.                                                                                                                            DEBUG: 00:00:37.8149499 Returning the call 'NuGetClient'::'InstallSinglePackage'.                       
PackageManagement\Install-Package : The member 'TypesToProcess' in the module manifest is not valid: Cannot find path '/tmp/652702334/Azure.Storage/.\Microsoft.WindowsAzure.Commands.Storage.Types.ps1xml' because it does not exist.. Verify that a valid value is specified for this field in the '/tmp/652702334/Azure.Storage/Azure.Storage.psd1' file.                                                            At /usr/local/share/powershell/Modules/PowerShellGet/1.6.0/PSModule.psm1:2057 char:21                                                                                                                       + ...          $null = PackageManagement\Install-Package @PSBoundParameters                                                                                                                                 +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                 + CategoryInfo          : ResourceUnavailable: (/tmp/652702334/...re.Storage.psd1:String) [Install-Package], Exception                                                                                      + FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

@cormacpayne
Copy link
Member

@wlami currently the AzureRM module is only available for desktop; if you are looking to use some of the AzureRM cmdlets on Linux, then you will want to install the AzureRM.Netcore module, which contains a subset of the cmdlets found in AzureRM (Compute, KeyVault, Network, Profile, Storage, Websites). In the future, we will be converting all of the modules in AzureRM to be NET Core compatible.

@wlami
Copy link
Author

wlami commented Feb 20, 2018

Okay, thank you very much!

@BalajiSankarKonakalla
Copy link

Thank you @cormacpayne

@fiftin
Copy link

fiftin commented Nov 14, 2018

@cormacpayne

currently the AzureRM module is only available for desktop; if you are looking to use some of the AzureRM cmdlets on Linux, then you will want to install the AzureRM.Netcore module

Is this actual? I found this instruction: https://docs.microsoft.com/en-us/powershell/azure/install-azurermps-maclinux?view=azurermps-6.12.0

@cormacpayne
Copy link
Member

@fiftin Hey Denis, this issue predates our new Az module, which is the cross-platform module that we will be switching to in December. It replaced the AzureRM.Netcore module around August or September of this year, and will also be replacing the AzureRM module in December. The documentation is correct that you should be using the Az module 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants