Powershell module error

Vijay Kumar 2,011 Reputation points
2022-05-31T19:51:18.097+00:00

Hi,

How to fix this error:
Getting below error while installing below module from Azure Cloud Shell (Not from windows powershell)

PS /home/userone> Install-Module AzureRm

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the
Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
Install-Package: The member 'TypesToProcess' in the module manifest is not valid: Cannot find path
'/tmp/1611149554/Azure.Storage.4.6.1/.\Microsoft.WindowsAzure.Commands.Storage.Types.ps1xml' because it does not exist.. Verify that a valid value is
specified for this field in the '/tmp/1611149554/Azure.Storage.4.6.1/Azure.Storage.psd1' file.

Azure SQL Database
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
628 questions
0 comments No comments
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 26,537 Reputation points Microsoft Employee
    2022-06-03T14:44:25.523+00:00

    Hi, @Vijay Kumar On checking with the internal product team as I mentioned above The AzureRM PowerShell module only works on Windows (It is not cross platform). AzureRM is also no longer recommended as deprecation has also been announced for it.
    The Az PowerShell module is the recommended module for managing Azure resources with PowerShell and is cross-platform. It is already installed in Cloud Shell.
    Please refer to this document for more information.

    208215-image.png

    Please don't forget to click on 130616-image.png or upvote 130671-image.png button, whenever the information provided, helps you. Original posters help the community find answers faster by identifying the correct answer.

    Regards
    Geetha


1 additional answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 26,537 Reputation points Microsoft Employee
    2022-06-01T08:21:10.977+00:00

    Hi, @Vijay Kumar Thanks for the ask and for using the Microsoft Q&A platform.
    As we understand you are facing issue while installing AzureRm

    I tried to reproduce with Y and A, I did not face any issue however can you give it a try with "Y"
    what is your PowerShell version?
    Please refer to this document for more information and important notes.
    207378-image.png

    Regards
    Geetha