Comments (5)
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.
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.
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.
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.
Will close this now, but can reopen if needed.
from dbatools.
Related Issues (20)
- Issue with creating new directory when Invoke-DbaDbLogShipping. HOT 1
- Find-dbadbunusedindex | write-dbadbtabledata - Incorrect syntax near ')' HOT 7
- Azure Automation Account - issue loading the module HOT 6
- Odd Experience when using Connect-DbaInstance HOT 3
- Test-DbaWindowsLogin add property on account name mismatch HOT 3
- Invoke-DbaQuery's parameter list is oddly formatted. This appears to break the online docs and Get-Help. HOT 9
- Update-DbaInstance can not use secure PS Remoting HOT 1
- dbatools.io / github Slack Invite has expired (again) HOT 1
- Copy-DbaAgentJob fails when trying to copy CDC jobs HOT 3
- New-DbaAgentJobStep -DatabaseUser is not setting the username for the job. HOT 2
- PowerShell 7.4.2 version error with dotnet 8.0.4 and Microsoft.Data.SqlClient assembly HOT 1
- Warning after run Get-Dbatoolsconfig or Find-DbaInstance on Windows Server 2016 HOT 1
- Restore-DbaDatabase with -Continue when Database has Memory Optimized File Group and/or multiple differential_base_lsn HOT 1
- Behavior of `Get-DbaDatabase -Database DoesNotExist` HOT 2
- New-DbaAgentSchedule flags an error with a start time before 10000? HOT 4
- Install-DbaFirstResponderKit is installing version 8.18, which is old HOT 4
- Publish-DbaDacPackage appears to ignore DacFxPath option HOT 1
- write-dbadbdatatable - cannot use connection created by connect-dbainstance HOT 11
- Harmonize the description of the parameter SqlInstance
- Get-DbaRegisteredServer - -ExcludeServer would be usefull
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 dbatools.