Skip to content

How to use Az.Powershell and MSAL.PS together? #15197

Answered by erich-wang
devlie asked this question in Q&A
Discussion options

You must be logged in to vote

Dependency assembly version conflict is inevitable in PowerShell 7 as modules are owned by different teams/companies.
The key point is how each module handle the version conflict. Currently MSAL.PS is sticking to specific version of Microsoft.Identity.Client, while Az.Accounts works fine if higher version of Microsoft.Identity.Client is already loaded first.

BTW, Azure PowerShell is working on dependency assembly isolation by using AssemblyLoadContext which should solve the conflict with other modules, the plan is to release within H2 2021.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@devlie
Comment options

devlie Jun 16, 2021
Collaborator Author

Answer selected by devlie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants