Giter Club home page Giter Club logo

Comments (14)

jamesweb-ms avatar jamesweb-ms commented on August 16, 2024 2

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.

aguilaaj avatar aguilaaj commented on August 16, 2024 1

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.

kylecaulfield avatar kylecaulfield commented on August 16, 2024

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.

aguilaaj avatar aguilaaj commented on August 16, 2024

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.

robomotic avatar robomotic commented on August 16, 2024

Yes sorry forgot to mention but restarting the laptop worked pretty well and was able to completed the build.

from azure-iot-remote-monitoring.

robomotic avatar robomotic commented on August 16, 2024

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

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.

aguilaaj avatar aguilaaj commented on August 16, 2024

@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.

robomotic avatar robomotic commented on August 16, 2024

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.

robomotic avatar robomotic commented on August 16, 2024

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.

robomotic avatar robomotic commented on August 16, 2024

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.

jamesweb-ms avatar jamesweb-ms commented on August 16, 2024

@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.

robomotic avatar robomotic commented on August 16, 2024

Sure excellent.

from azure-iot-remote-monitoring.

jamesweb-ms avatar jamesweb-ms commented on August 16, 2024

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.

aguilaaj avatar aguilaaj commented on August 16, 2024

Fixed in #151 - please pull the latest from master. Closing for now.

from azure-iot-remote-monitoring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.