Giter Site home page Giter Site logo

Comments (5)

andreasjordan avatar andreasjordan commented on June 20, 2024 1

Workaround: Import Az modules first, then dbatools:

Import-Module Az.Accounts, Az.Storage
Import-Module dbatools

Just another example why I always import all modules at the top of the script in the "correct" order...

from dbatools.

potatoqualitee avatar potatoqualitee commented on June 20, 2024

Seems like this could be conflicting versions of Azure Identity. Can you load dbatools after and see if it still works? If it continues not to work, I don't know how to fix it, unfortunately. Maybe try in Core as it loads DLLs differently (I think)

from dbatools.

wsmelton avatar wsmelton commented on June 20, 2024

This is by nature of the library version we use for Azure authentication being lower to the one used by Azure PowerShell modules...or version mismatch around APIs hit (could be both or one of the two).

It will likely exists for the other modules that deal with identity auth and not just storage commands.

Maybe you can expand on why you need to use those Az commands with dbatools in the same session?

Also what does "crash" mean?

from dbatools.

andreasjordan avatar andreasjordan commented on June 20, 2024

I can reproduce the issue and the get the error message that is shown in the linked issue. Only importing dbatools is needed, no connection to an instance is needed.

from dbatools.

andreasjordan avatar andreasjordan commented on June 20, 2024

Will close this now, but can reopen if needed.

from dbatools.

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.