How to use Az.Powershell and MSAL.PS together? #15197
-
Does anybody know if there's a way to run Az.Powershell and MSAL.PS side by side on PS Core 7? We are hitting the issue described here. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Dependency assembly version conflict is inevitable in PowerShell 7 as modules are owned by different teams/companies. 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. |
Beta Was this translation helpful? Give feedback.
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.