-
Notifications
You must be signed in to change notification settings - Fork 368
[BUG] Microsoft.Graph and PnP.PowerShell conflict (Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider') #3920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @gautamdsheth Can you help to fix this issue? My bug seemed to similar to |
Closing as duplicate of #3637 . We are tracking that via the above linked issue, no updates as yet for that unfortunately. |
Thank you for your answer. This bug seems to concern a lot of people and we have no workaround for it. How can I help to solve this bug? Please let me know I need to work with pnp and graph in one powershell script within one runbook |
Seeing the same issue, my DEV VM is Windows 11 and has the following installed PowerShell Version: 7.4.2 The error happens in the following line of code
Consistently happens when I'm running the script via VS Code Terminal Window (Powershell 7.4.2 process) or from my Terminal Window (PowerShell 7.4.2) |
if you run the Graph stuff in a separate runspace (in my case a job), then you can circumvent the issue. It's not a fix, but a workaround. I hope there is a resolution soon. |
I have the same issue. Have someone a workaround? |
I have the same issue. Im using pnp version 2.12.0 and get the error:
|
They had 1 Delete the 125 file Microsoft.Graph.Core.dll from Modules PNP.Powershell Core Folder Another was to do all the MG work first to force it to load the native Microsoft.Graph.Core.dll first |
Describe the bug
When using the Microsoft.Graph and PnP.PowerShell module in the same script
fails with the following exception:
Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0, Culture=neutral, PublicKeyToken=315'.
The error occurs if the script is executed locally as well as an Azure Automation runbook.
Using module 2.4.0 | PnP.PowerShell in Azure Automation
The text was updated successfully, but these errors were encountered: