Forum Discussion
Site provisioning from SharePoint (online) UI - CSOM, REST, Azure? What is the best approach?
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?
... 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.