遵循TechNet指南for AzureStack,遇到Powershell存储库错误

时间:2018-09-17 18:07:07

标签: azure powershell module repository

我目前处于Technet指南的第四步,并且Powershell给了我我不太完全理解的错误。

在我看来,它似乎试图使用存储库BootStrap?但是,如步骤所示,我的存储库是PSGallery。 “安装模块”名称参数的格式是AzureRm(存储库)吗?

对于第二个错误,不确定1.2.11版本来自哪里,因为代码指定为1.4.0。

感谢您的帮助!屏幕快照附上我的输出。enter image description here

1 个答案:

答案 0 :(得分:0)

无法重现您的问题,该命令对我而言效果很好。这是一些信息供您参考。

  

在我看来,它似乎试图使用存储库BootStrap?但是,如步骤所示,我的存储库是PSGallery。 “安装模块”名称参数的格式是AzureRm(存储库)吗?

是的,AzureRM.BootStrapper属于PSGallery,请参考此link。请注意,Minimum PowerShell version5.0。另外,它可能会更新0.4.0中的9/17/2018版本。

我的Powershell环境:

enter image description here

结果摘要(不完整,因为太长了):

enter image description here

enter image description here

enter image description here