【发布时间】:2017-07-13 21:21:19
【问题描述】:
团队,
我们正在从 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 : 'Get-AzureEnvironment' 命令位于 模块“Azure”,但无法加载该模块。更多 信息,r '导入模块 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) + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-AzureEnvironment:String) , CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
Get-AzureRMEnvironment:“Get-AzureRMEnvironment”命令是 在模块“AzureRM”中找到,但无法加载该模块。为了 更多信息,请运行“Import-Module AzureRM”。
模块已成功导入,但不确定为什么在本地构建 soln 时会失败。尝试将执行策略设置为绕过,不受限制。也适用于当前用户,但没有帮助。
我们的想法已经用完了。有人可以帮忙吗?
【问题讨论】:
-
请运行此命令以显示 azure powershell 版本
Get-Module -ListAvailable -Name Azure -Refresh?
标签: powershell azure iot azure-powershell azure-iot-hub