Enable site collection provisioning with CSOM in on-premises farm SP2019
TomDeu opened this issue · 2 comments
Category
[x] Problem
Environment
[x] SharePoint 2019 OnPrem
[x] PnPPowerShell2019 March Release
Expected or Desired Behavior
Enable site collection provisioning with CSOM in on-premises farm SP2019
Using code by Vesa Juvonen
https://blogs.msdn.microsoft.com/vesku/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom/
Observed Behavior
I got an error when using PNP-Powershell commands: "New-PnPTenantSite: Stub was not found, server did not support API"
Steps to Reproduce
-
Using latest PNP PowerShell (msi) March 2019 Release für SP2019
-
Enable site collection provisioning in SP2019 on-premises farm by using this code:
https://blogs.msdn.microsoft.com/vesku/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom/ -
Try to create a new tenant site by using "New-PnPTenantSite -Url "myUrl" - Title "mytitle" -Owner "myUser" -TimeZone "4"
Got it, problem solved. It is working now with SP2019
How did you solve this? Tried the script on the Vesku blog, but still get the error: "New-PnPTenantSite : Cannot find stub for type with id..."