You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The issue does not occur if the PnP.PowerShell module is uninstalled or downgraded to version 2.2.0.
The issue is only present when using the PowerShell Extension terminal in VSCode. Opening a standard PowerShell terminal within VSCode does not produce the error.
I have tested this across multiple machines, and the issue persists.
Installing PnP.PowerShell v2.2.0 resolves the issue.
Opening a standard PowerShell Core Terminal, outside of VsCode, does not produce the error.
Is there a known incompatibility between these two modules in the PowerShell Extension, or any workarounds besides downgrading the PnP.PowerShell module?
Prerequisites
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?
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Connect-MgGraph -ClientId $clientID -TenantId $tenantID -CertificateThumbprint $thumbPrint
Get-MgOrganization
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: