Forum Discussion
Ravi Khambhati
Jan 18, 2018Copper Contributor
Apply-PnPProvisioningTemplate fails to provision the site
Here is my scenario if you keep creating a template of a site and create a site with that template it fails on the third occurrence with below message.
Create new site for e.g. "RaviSite01"
Cre...
M_Wetters
Jan 21, 2019Copper Contributor
New-PnPTenantSite -Url "http://officedevpnp/sites/fromxmltemplate" `
-Title "RaviSite01" `
-Owner "ravi" `
-TimeZone 10Is an Async call. If you try to apply a template before the site creation is finished it will fail.
You can add the option -wait to make sure the site creation is finished.
Regards Marc