Using PnP PowerShell along with Graph is raising this error "Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider'" #4942
Unanswered
mvcsharepointdev
asked this question in
Q&A
Replies: 1 comment
-
|
I was able to fix similar error by removing the Import-Module PnP.PowerShell from code and using any PnP.Powershell command after finishing with all Micrsoft.Graph module related commands. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an azure function which is based on PowerShell, here is the local.settings.json file:-
and i have this code , to get all the items from a sharepoint list named "Emails" and remove the users from all their assigned groups:
But i got this error when the function runs:-
so what could be the reaons? i were able to call Graph, but this error occur only after i added the PnP.PowerShell module..
Beta Was this translation helpful? Give feedback.
All reactions