團隊,本地部署時發生錯誤 - Azure IOT遠程監控套件
我們正在從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 : The 'Get-AzureEnvironment' command was found in the module 'Azure', but the module could not be loaded. For more information, r 'Import-Module Azure'. At 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 : The 'Get-AzureRMEnvironment' command was found in module 'AzureRM', but the module could not be loaded. For more information, run 'Import-Module AzureRM'.
模塊已成功導入,但不知道爲什麼它同時在本地建立SOLN失敗。試圖設置執行策略繞過,不受限制。也限制在當前用戶的範圍內,但不起作用。
我們已經用完了想法。任何人都可以幫忙嗎?
請運行此命令以顯示azure powershell版本'Get-Module -ListAvailable -Name Azure -Refresh'? –