Connect-PnPOnline command is not working along with Export-M365DSCConfiguration in Azure Runbook #3389
Unanswered
Infy-Ayusi
asked this question in
General
Replies: 2 comments
-
@Infy-Ayusi Any particular reason why you're using such an old PnP PowerShell version? Could you try this with the latest nightly build of PnP PowerShell? @gautamdsheth has recently implemented a fix for clashes between multiple PowerShell modules using different versions of the same file, which seems to be the case at hand here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, this issue has been fixed with latest nightly builds of PnP PowerShell. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
We are running a script in Azure Runbook which performs actions-
-Connects to SharePoint site using Connect-PnPOnline
-Export M365DSC configuration
Script returns error: Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
After consulting with M365DSC Github community contributors, we understood it is occurring due to PnP command.
Kindly suggest on this issue.
Reporting an Issue or Missing Feature
Issue
Expected behavior
To connect SharePoint site and work with Export-M365DSCConfiguration command
Actual behavior
Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Steps to reproduce behavior
Make Connect-PnPOnline command call before Export DSC command
What is the version of the Cmdlet module you are running?
1.12.0 with PS 5.1
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions