Giter Club home page Giter Club logo

Comments (12)

Claudio-Merola avatar Claudio-Merola commented on July 22, 2024 2

but you write "-DeviceAuthentication" in the command line not "-DeviceLogin" 😄

from ari.

eriwol avatar eriwol commented on July 22, 2024 1

Worked perfectly! Keep up the good work, this is an awesome tool 😊

from ari.

Claudio-Merola avatar Claudio-Merola commented on July 22, 2024

Hi @eriwol

that's odd, can you run the script adding the -Debug parameter and posting the output messages before and after the error?

Thanks

from ari.

eriwol avatar eriwol commented on July 22, 2024

Hi, thank you:
This worked flawlessly until today, perhaps updating some modules caused this? I will also try running the script from another server today if I get the time.
image

image

image

Finishes with login box open wihich is unresponsive:
image

from ari.

Claudio-Merola avatar Claudio-Merola commented on July 22, 2024

Hi @eriwol

That's interesting. What parameters are you using? -IncludeTags or -ResourceGroups?

Did you download the full repository or just the main script?

Thanks

from ari.

eriwol avatar eriwol commented on July 22, 2024

Hi,
Just the main script with these parameters:
.\AzureResourceInventory.ps1 -TenantID xxxxxx -Online -ReportDir "C:\AzureResourceInventory-report\NCA" -SecurityCenter -DiagramFullEnvironment -IncludeTags

Tried a new setup on a new server 2022 with same behaviour:
First run:
image

Second run:
image

Could it be some az cli modules has changed or is it my setup?

from ari.

sbirdi avatar sbirdi commented on July 22, 2024

I'm experiencing the same error message with it prompting with az login and pops up with a dialog window to select the relevant Azure account to use, it then hangs at this point.
It seems to work by authenticating with the -DeviceLogin option.

from ari.

Claudio-Merola avatar Claudio-Merola commented on July 22, 2024

Hi @eriwol

az cli changed the way it authenticate (by providing a pop-up windows)

I have updated the az cli to be in the exact same version you have, but I'm not having this issue:

image

I have also used the exact same parameters.

One thing I noticed is that your authentication prompt does not have the accounts cached:

image

As @sbirdi mentioned, can you try using the -DeviceAuthentication ?

from ari.

eriwol avatar eriwol commented on July 22, 2024

Should this be on the commandline like this or in the ARI script itself? Tried the below but with same error.
.\AzureResourceInventory.ps1 -TenantID xxxxx -DeviceAuthentication -Online -ReportDir "C:\AzureResourceInventory-report" -Diagram -IncludeTags

image

from ari.

Claudio-Merola avatar Claudio-Merola commented on July 22, 2024

@eriwol

Its a parameter: "-DeviceLogin"

run like that:

.\AzureResourceInventory.ps1 -TenantID xxxxx -DeviceLogin -Online -ReportDir "C:\AzureResourceInventory-report" -Diagram -IncludeTags

It will ask you to authenticate in a different manner.

from ari.

eriwol avatar eriwol commented on July 22, 2024

See above, that's what I tried 😊, made no difference for me.

from ari.

eriwol avatar eriwol commented on July 22, 2024

Oh no sorry, how did I manage that?, 🙃 Will try again with the correct parameter this time (and clean my glasses)

from ari.

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.