Forum Discussion
Mike Jansen
Mar 31, 2017Iron Contributor
Site provisioning from SharePoint (online) UI - CSOM, REST, Azure? What is the best approach?
We have a kind of case-filing application in SharePoint. When we have a new case, a new site has to be genereated (specific webparts, settings and content). We developed a (CSOM) C# windows.exe a...
Deleted
Apr 02, 2017I think a part is right Bill_Ayers1 jcgonzalezmartin but if you use functions be carefull when you have a large site to provision the function will have a time out.
Mikael Svenson
Apr 02, 2017Steel Contributor
Deleted wrote:I think a part is right Bill_Ayers1 jcgonzalezmartin but if you use functions be carefull when you have a large site to provision the function will have a time out.
Indeed, and for functions the connection has to stay open during the duration. Spinning up old style site collection still usually takes 10+ minutes, so an always on webjob or similar might be a more stable approach.
For my sample, polling the site order list works fine, and we have it in production. But if you create many sites right away, the last person is in for a white as it does things synchronously. Which means, you need to look at the scenario at hand, and architect the complexity needed to solve your scenario. How many moving parts do you need to make it work for you?
- Bill_Ayers1Apr 02, 2017MVP
... for Consumption plan, yes there is a 5 min. timeout (although that might change in the future). If you have an existing App Service plan you should be okay. But yes, that is a design consideration.
- Mike JansenApr 02, 2017Iron Contributor
Thanks al lot everyone. I will check the PnP Provisioning option.
- Mikael SvensonApr 02, 2017Steel ContributorIf my simple solution is too simple, look at https://github.com/SharePoint/PnP-Partner-Pack for inspiration.