问题描述
我试图在 PowerShell 中使用 Install-Module Azure
安装 Azure.我收到以下错误:
I was trying to install Azure using Install-Module Azure
in PowerShell. I got the following error:
PS C:Windowssystem32> 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
为什么 PS 无法识别基本的 Install 模块?没有这个,我什至无法安装 Azure.我该怎么办?
Why is PS not recognizing the basic Install module? Without this I can't even install Azure. What should I do?
推荐答案
由于你使用的是低版本的PS:
Since you are using the lower version of PS:
在您的情况下,您可以先将模块下载到本地文件夹中.
What you can do in your case is you first download the module in your local folder.
然后,该文件夹下将有一个用于此模块的.psm1 文件.
Then, there will be a .psm1 file under that folder for this module.
你只是
import-Module文件路径.psm1"
这是下载 Azure 模块的链接:Azure Powershell
Here is the link to download the Azure Module:Azure Powershell
这将完成您的工作.
这篇关于安装模块:术语“安装模块"不被识别为 cmdlet 的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!