Mar*_*lic 33 powershell azure azure-virtual-machine azure-powershell
我试图Install-Module Azure
在PowerShell中安装Azure .我收到以下错误:
PS C:\Windows\system32> Install-Module Azure
Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is corre
ct and try again.
At line:1 char:1
+ Install-Module Azure
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)
为什么PS无法识别基本的安装模块?没有这个,我甚至无法安装Azure.我该怎么办?
Ven*_*ndi 22
另一个基于GUI的选项来修复此错误是从Microsoft网站下载PackageManagement PowerShell模块(msi安装程序)并安装模块.
安装完成后,您将无法获得"'Install-Module'未被识别为cmdlet的名称"错误.
Ran*_*tta 17
由于您使用的是较低版本的PS:
在您的情况下,您可以首先在本地文件夹中下载该模块.
然后,该模块的该文件夹下将有一个.psm1文件.
你刚才
import-Module"file.psm1的路径"
以下是下载Azure模块的链接: Azure Powershell
这将完成你的工作.
Jas*_* Ye 16
您应该安装最新版本的PowerShell,然后使用此命令Install-Module Azure
安装azure模块.因为从Powershell 5.0开始,您将能够将cmdlet用于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
Run Code Online (Sandbox Code Playgroud)
有关安装Azure PowerShell的详细信息,请参阅链接.
我有 Windows 10,并且已安装 PowerShell 5.1。无论出于何种原因,x86 版本都可以工作并且可以找到“Install-Module”,但其他版本却不能。
在“开始”菜单中搜索“powershell”,然后找到以“(x86)”结尾的条目:
以下是我在两个不同版本之间的体验:
归档时间: |
|
查看次数: |
153985 次 |
最近记录: |