Forum Discussion

johnjohn-Peter's avatar
johnjohn-Peter
Iron Contributor
Jul 17, 2024

Invoke-PnPTenantTemplate is not performing any action.. "Access token acquired"

I have 2 SharePoint Online tenants which both have a modern communication sites. now i used this command to get the source site template:-

 

 

 

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

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

 

 

 

and i got this file:-

 

 

 

 

but when i try to apply the site template to the destination site using this command:-

 

 

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"

 

 

the command show the following text:-

"initializing engine....Applying Template... "

then it ends after 2 seconds, without applying any thing to the destination.. so what can be causing this issue?

Also when i run the `Invoke-PnPTenantTemplate` using `-Verbose`, i got this error Access token acquired:-

 

 

No RepliesBe the first to reply

Resources