首页 文章

本地部署时出错 - Azure IOT远程监控套件

提问于
浏览
0

球队,

我们正在尝试从github这个IOT远程监控套件 . 我们首先尝试在本地部署而不是Azure,因此我们遵循了此处提到的文档https://github.com/Azure/azure-iot-remote-monitoring/blob/master/Docs/local-deployment.md

此外,我们已遵循此处的先决条件https://github.com/Azure/azure-iot-remote-monitoring/blob/master/Docs/dev-setup.md

然后我们来到我的开发人员命令提示符(以管理员身份运行)但我们最终得到错误:

Get-AzureEnvironment:在“Azure”模块中找到了“Get-AzureEnvironment”命令,但无法加载该模块 . 有关更多信息,请参阅r'Import-Module Azure' . 在C:\ Users \ swagh \ Downloads \ azure-iot-remote-monitoring-master \ azure-iot-re -monitoring-master \ Common \ Deployment \ PrepareIoTSample.ps1:14 char:14 if((Get-AzureEnvironment AzureCloud) -eq $ null)~~~~~~~~~~~~~~~~~~~分类信息:ObjectNotFound :( Get-AzureEnvironment:String),CommandNotFoundException FullyQualifiedErrorId:CouldNotAutoloadMatchingModule Get-AzureRMEnvironment:'Get-AzureRMEnvironment '命令在模块'AzureRM'中找到,但无法加载模块 . 有关更多信息,请运行“Import-Module AzureRM” .

模块已成功导入,但不确定在本地构建soln时失败的原因 . 尝试将执行策略设置为绕过,不受限制 . 还限定了当前用户,但它没有帮助 .

我们已经没有想法了 . 有人可以帮忙吗?

2 回答

  • 0

    根据您的错误消息,您似乎没有正确安装Azure PowerShell .

    我们可以安装下载Azure PowerShell here . 下载 azure-powershell.4.2.0.msi 完成后,以管理员身份运行 .

    我们可以找到最新版本的Azure powershell here .

    enter image description here

    我们可以在Azure PowerShell版本4.2.0中运行此命令:
    enter image description here

  • 0

    Azure error

    以上错误的屏幕截图 .

相关问题