Skip to content
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

Export/Import for workloads SharePoint and OneDrive is not working using credentials. #5470

Open
CovidtheDog2024 opened this issue Nov 27, 2024 · 2 comments

Comments

@CovidtheDog2024
Copy link

Hi MVP,
Is there a plan to enable credentials for exporting/importing SharePoint and OneDrive, similar to other workloads?"

Error Log:
System.InvalidOperationException: The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.
at PnP.PowerShell.Commands.PnPSharePointCmdlet.BeginProcessing()
at PnP.PowerShell.Commands.PnPWebRetrievalsCmdlet`1.BeginProcessing()
at System.Management.Automation.Cmdlet.DoBeginProcessing()
at System.Management.Automation.CommandProcessorBase.DoBegin()
"Error during Export:"
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1120.1\DSCResources\MSFT_SPOUserProfileProperty\MSFT_SPOUserProfileProperty.psm1: line 327
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1120.1\Modules\M365DSCReverse.psm1: line 682
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1120.1\Modules\M365DSCUtil.psm1: line 1460
at , : line 1

@ArtemPozharovDNSBelgium
Copy link

I even tried using Certificate Thumbprint, but Microsoft 365 DSC does not recognize the tenant...

@FabienTschanz
Copy link
Collaborator

There were some fixes in the latest versions of Microsoft365DSC that targeted the context used for authentication against SharePoint. Can you please try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants