Can't call New-PnSSite when Microsoft.Graph.Authentication is loaded #2906
Unanswered
Ambergahill
asked this question in
General
Replies: 2 comments
-
Moving it to discussion forum. This issue is something related to loading external libraries in the same session as PnP PowerShell. This not something we maybe able to fix. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @gautamdsheth I think this might be the same issue as reported in #3637. It seems that MgGraph and PnP are not compatible with each other in terms of authentication. Is there anything that can be done from your end? Microsoft is moving everything towards MgGraph (AzureAD is now obsolete) and this conflict has broken many of my scripts. |
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.
-
Reporting an Issue or Missing Feature
When calling New-PnPSite and the Microsoft.Graph.Authentication module is loaded, you get an error saying "Could not load file or assembly System.IdentityModel.Tokens.Jwt Version 6.12.2.0
Expected behavior
The new SPO site should be created without error. Code is working fine when the Microsoft.Graph.Authentication module is not loaded
Actual behavior
See screenshot

Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
See above
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions