[BUG] Conflict between Microsoft.Graph and PnP.PowerShell Modules in VsCode PowerShell Extension #4476
Open
1 of 6 tasks
Labels
bug
Something isn't working
Summary
I'm encountering an issue when using the Microsoft.Graph PowerShell module in combination with the PnP.PowerShell module while connecting via a certificate. The issue only occurs within the PowerShell Extension terminal in VSCode.
Expected Behavior:
The command should execute successfully without any errors.
Actual Behavior:
After connecting, any attempt to run a MgGraph command results in the following error:
Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Notes
Is there a known incompatibility between these two modules in the PowerShell Extension, or any workarounds besides downgrading the PnP.PowerShell module?
I had opened a ticket #5069 with the PowerShell VsCode extension and they advised to raise it with PnP.PowerShell saying that there are multiple known issues with their ALC implementation.
Related: #3510
Steps to Reproduce
Connect-MgGraph -ClientId $clientID -TenantId $tenantID -CertificateThumbprint $thumbPrint
Get-MgOrganization
Which operating system/environment are you running PnP PowerShell on?
Visuals
The text was updated successfully, but these errors were encountered: