title: Apply template to a sharepoint online site
body: <p>I am using the PnP approach for getting the publishing site template and creating a new sitecollection and applying the template so that i get the replica of the source site. </p>
  
  <p>I am getting the error- Scope of template does not match target while running 
  the below powershell script to apply the template -
  $web="https://shareptdev.sharepoint.com/sites/newpub/replicasite 
  $templateFile = "E:\Path\template.xml";
  Apply-PnPProvisioningTemplate -Web $web -Path $templateFile</p>