Comments (14)
I have typically seen this error:
Import-Module : The required module 'Azure.Storage' is not
loaded. Load the module or remove the module from
'RequiredModules' in the file 'C:\Program Files (x86)\Microsoft
SDKs\Azure\PowerShell\ServiceManagement\Azure\Azure.psd1'.
if you install powershell and then try to use it right away. A reboot is actually required... though it doesn't tell you.
from azure-iot-remote-monitoring.
You can also try to delete the user file in the root folder of where you pulled down the repository. It will be named something like username.user then retry.
from azure-iot-remote-monitoring.
I have the same issue if I don't run the dev command prompt for vs as administrator; have you tried that?
from azure-iot-remote-monitoring.
As called out in #144: Make sure you have the correct prerequisites outlined here: https://github.com/Azure/azure-iot-remote-monitoring/wiki/Set-up-development-environment-%28Windows%29
from azure-iot-remote-monitoring.
Yes sorry forgot to mention but restarting the laptop worked pretty well and was able to completed the build.
from azure-iot-remote-monitoring.
Oh no actually there was an additional error I incurred into, when I rerun the local deploy.
Signed into Azure already
Logging in
Available subscriptions:
Option SubscriptionName SubscriptionId
1 BizSpark ******-******-4088-9b30-56df9f70671d
Set-AzureRmContext : Cannot validate argument on parameter 'SubscriptionId'.
The argument is null or empty. Provide an argument that is not null or empty,
and then try the command again.
At C:\Users\ddiprod\Documents\LingangDashboard\azure-iot-remote-monitoring-mast
er\Common\Deployment\DeploymentLib.ps1:823 char:48
-
Select-AzureRmSubscription -SubscriptionId $global:SubscriptionId
-
~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [Set-AzureRmContext], Parameter
BindingValidationException - FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure
.Commands.Profile.SetAzureRMContextCommand
- CategoryInfo : InvalidData: (:) [Set-AzureRmContext], Parameter
I can then select the locations but I fear that this error is what gives more issue when I actually try to run the solution.
from azure-iot-remote-monitoring.
@jamesweb-ms has been taking a look for the fix.
For now you should try this workaround to clean-up your account:
Get-AzureAccount | %{Remove-AzureAccount -Name $_.Id -Force}
from azure-iot-remote-monitoring.
Okay, so I did that from a cmd.exe running as administator .
I start powershell and then do:
Get-AzureAccount | %{Remove-AzureAccount -Name $_.Id -Force}
WARNING: The default subscription is being removed. Use
Select-AzureSubscription -Default to select a new default
subscription.
Then I exit from powershell prompt.
The I re-run the build.cmd local command but I am still getting the same error:
Set-AzureRmContext : Cannot validate argument on parameter 'SubscriptionId'.
from azure-iot-remote-monitoring.
I did that as well but then when I re run the build.cmd local I still get the same error.
from azure-iot-remote-monitoring.
Okay so I have started afresh, deleted all configuration files, commandline with admin priviege, with the correct azure powershell version, I get now an additional error before the original one:
C:\Users\pippo\Documents\LingangDashboard\azure-iot-remote-monitoring-master\
Common\Deployment\DeploymentLib.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R
Exception calling "CompareTo" with "1" argument(s): "Object must be of type
Version."
At C:\Users\pippo\Documents\LingangDashboard\azure-iot-remote-monitoring-mast
er\Common\Deployment\DeploymentLib.ps1:884 char:1
+ $comparison = $expected.CompareTo($module.Version)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentException
Library WindowsAzure.ServiceBus not found, loading...
Loading Microsoft.ServiceBus.dll Assembly ...
Signing you into Azure...
Logging in
Available subscriptions:
Option SubscriptionName SubscriptionId
------ ---------------- --------------
1 BizSpark f47ad81e-xxxx-xxxx-xxxx-56df9f70671d
Set-AzureRmContext : Cannot validate argument on parameter 'SubscriptionId'.
The argument is null or empty. Provide an argument that is not null or empty,
and then try the command again.
At C:\Users\pippo\Documents\LingangDashboard\azure-iot-remote-monitoring-mast
er\Common\Deployment\DeploymentLib.ps1:823 char:48
+ Select-AzureRmSubscription -SubscriptionId $global:SubscriptionId
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-AzureRmContext], Parameter
BindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure
.Commands.Profile.SetAzureRMContextCommand
Available locations:
from azure-iot-remote-monitoring.
@robomotic I have a fix for that issue in az_national_cloud branch. We are working on fixing with updated libraries, but you should be able to try that out soon. I'll reply when its ready.
from azure-iot-remote-monitoring.
Sure excellent.
from azure-iot-remote-monitoring.
We have the final fix for this issue in Az_national_cloud branch. We are planning to merge this branch later today after some more testing. If you want to give it a try and give use feedback, that would be great!
from azure-iot-remote-monitoring.
Fixed in #151 - please pull the latest from master. Closing for now.
from azure-iot-remote-monitoring.
Related Issues (20)
- Sending DeviceInfo message to the IotHub doesnโt create the device in remote monitoring solution HOT 1
- More than 5 telemetry fields are not displayed in the dashboard HOT 1
- Unable to add rules for new telemetry fields added through the DeviceInfo message HOT 1
- Unable to specify nested fields in the Device Info message for the telemetry fields HOT 1
- Issue while deploying seperate Web job sending sensor data instead of Telemetry Data HOT 1
- build local problem HOT 4
- scheduling jobs from webapp treats all parameters as string. HOT 1
- issue 451 follow up local build fail HOT 1
- 'build.cmd local' throws an exception (Cannot validate argument on parameter 'Tenant'.) HOT 3
- Rules using Boolean data aren't triggering HOT 1
- Preconfigured solution isn't honoring status code in device message body HOT 1
- web portal stuck in infinite redirect HOT 1
- Add redirect to v2 in readme doc header HOT 1
- Telemetry shows "no data available" HOT 2
- RMv2 shows "Version 1.0.0" under settings flyout. HOT 1
- about custom rules for iot suite v1 HOT 1
- Stream Analytics Query CosmosDB output not saving
- Incorrect deployment of Remote Monitoring solution HOT 1
- Telemetry shows "no data available" HOT 1
- Stop VM & Apps - Start & Get: Dashboard Configuration is Missing. Verify Contents of Webui-config.js HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-iot-remote-monitoring.