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 shows the following text: -
"initializing engine....Applying Template... "
then it ends after 2 seconds, without applying anything to the destination.. so, what can be causing this issue?
My Powershell version is PowerShell 7.4.2