Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet

后端 未结 10 932
刺人心
刺人心 2020-12-14 05:50

I was trying to install Azure using Install-Module Azure in PowerShell. I got the following error:

PS C:\\Windows\\system32> Install-Module A         


        
10条回答
  •  清歌不尽
    2020-12-14 06:35

    You should install the latest version of PowerShell, then use this command Install-Module Azure to install azure module. Because from Powershell 5.0 onwards you , you will be able to use the cmdlet to Install-Module, Save-Module

    PS > $psversiontable
    Name                           Value
    ----                           -----
    PSVersion                      5.1.14393.576
    PSEdition                      Desktop
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
    BuildVersion                   10.0.14393.576
    CLRVersion                     4.0.30319.42000
    WSManStackVersion              3.0
    PSRemotingProtocolVersion      2.3
    SerializationVersion           1.1.0.1
    

    More information about install Azure PowerShell, refer to the link.

提交回复
热议问题