0

I have 2 office 365 tenants (Source & Destination). I used this command to get the Source communication site template inside my PowerShell 7.0 version 7.3.4:-

PS C:\Users\mohan> Connect-PnPOnline -Url "https://source.sharepoint.com/sites/PPM-test/" -Interactive

PS C:\Users\mohan> Get-PnPSiteTemplate -Out "PnP-Provisioning-F.xml"

where i got this file:-

enter image description here

Then when i tried to apply this template to a new communication site at the destination tenant, i got those errors/messages and the process will end after 3 seconds without applying the template:-

PS C:\Users\mohan> Connect-PnPOnline -Url "https://destination.sharepoint.com/sites/PPM-test/" -Interactive

PS C:\Users\mohan> Invoke-PnPTenantTemplate -Path "PnP-Provisioning-F.xml"

here are the errors:-

VERBOSE: Acquiring oAuth token for permission scope Group.ReadWrite.All
VERBOSE: Access token acquired

enter image description here

any advice ? what is causing this error? I login to the destination using the site collection admin which is also an office 365 SharePoint admin. So why I am getting Access token Required? looks strange?

Thanks in advance for any help.

0 Answers0