PNP Provisioning operations are very slow for SharePoint Online Classic site

%3CLINGO-SUB%20id%3D%22lingo-sub-194278%22%20slang%3D%22en-US%22%3EPNP%20Provisioning%20operations%20are%20very%20slow%20for%20SharePoint%20Online%20Classic%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194278%22%20slang%3D%22en-US%22%3E%3CH6%20id%3D%22toc-hId-838330979%22%20id%3D%22toc-hId-838330979%22%3E%3CSPAN%3EHello%2C%3C%2FSPAN%3E%3C%2FH6%3E%3CH6%20id%3D%22toc-hId--1713825982%22%20id%3D%22toc-hId--1713825982%22%3E%26nbsp%3B%3C%2FH6%3E%3CDIV%3E%3CP%3EWe%20are%20facing%20following%20issue%20in%20provisioning%20SharePoint%20Online%20site%20through%20PNP.%3C%2FP%3E%3CP%3ECurrently%2C%20a%20site%20is%20being%20provisioning%20in%20O365%20tenant%20(US)%20through%20PNP%20Provisioning%20code%2C%20adding%20Add-ins%20and%20applying%20customization%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20time%20required%20to%20provision%20sites%20is%20quite%20variable.%20Sometimes%2C%26nbsp%3Bit%20is%20done%20in%202-3%20minutes%20during%20off%20time%20period%20while%20it%20takes%20around%2015%20minutes%20during%20US%20business%20hours.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3BHowever%2C%20The%20usual%20process%20takes%20around%2035%2F40%20minutes%20as%20mentioned%20follows%20(%20which%20should%20have%20been%20finished%20within%205%2F10%20minutes%20%3A(%3C%2Fimg%3E%3C%2FDIV%3E%3CDIV%3E%3COL%3E%3CLI%3ESharePoint%20Online%20Site%20creation%20-%207-10%26nbsp%3B%20minutes%3C%2FLI%3E%3CLI%3EAdd%20ins%20%2B%20template%20customization%20(%20Root%20Site%20)%20-%205%2F10%20minutes%3C%2FLI%3E%3CLI%3EBranding%20customization%20(%20Root%20Site%20)%20-%201-2%20minutes%3C%2FLI%3E%3CLI%3ESub%20site%20creation%20-%201%2F2%20minutes%3C%2FLI%3E%3CLI%3EAdd%20ins%20%2B%20Template%20Customization%20(%20Subsite%20)%20-%205%2F10%20minutes%3C%2FLI%3E%3CLI%3EBranding%20customization%20(%20Sub%20site%20)%20-%201%2F2%20minutes%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CP%3EHas%20anyone%20in%20the%20past%20faced%20such%20a%20situation%3F%20Is%20there%20any%20best%20practices%20to%20follow%20to%20avoid%20longer%20time%20period%20for%20the%20deployment%20%3F%20Or%20it%20could%26nbsp%3B%20be%20related%20O365%20tenant%20configuration%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20will%20be%20highly%20appreciated%2C%20Thank%20you%20in%20advance%20!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%3EBest%20Regards%2C%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-200019%22%20slang%3D%22en-US%22%3ERe%3A%20PNP%20Provisioning%20operations%20are%20very%20slow%20for%20SharePoint%20Online%20Classic%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200019%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I'm%20also%20having%20this%20issue%20with%20template%20provisioning%2C%20is%20taking%20too%20much%20time%20to%20complete%20(90%20minutes).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20posted%20a%20question%20about%20this%20in%20%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F242307%2Fapplyprovisioningtemplate-function-from-sharepointpnpcoreonline-is-taking-too-mu%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EStack%20Exchange%3C%2FA%3E.%3C%2FP%3E%3CP%3EAlso%2C%20it%20seems%20somebody%20also%20had%20this%20issue%20and%20published%20a%20post%20on%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-Sites-Core%2Fissues%2F1713%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%20project%3C%2FA%3E.%3C%2FP%3E%3CP%3EIt%20seems%20that%26nbsp%3Binstalling%20the%20program%20that%20uses%20CSOM%20in%20the%20Azure%20service%20with%20the%20correct%20resources%20allows%20the%20program%20to%20run%20faster%2C%20although%20I%20do%20not%20know%20why%20this%20happens%2C%20and%20why%20installing%20the%20program%20in%20a%20server%20has%20not%20the%20same%20results.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20manage%20to%20find%20a%20solution%20for%20this%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor
Hello,
 

We are facing following issue in provisioning SharePoint Online site through PNP.

Currently, a site is being provisioning in O365 tenant (US) through PNP Provisioning code, adding Add-ins and applying customization etc.

 

The time required to provision sites is quite variable. Sometimes, it is done in 2-3 minutes during off time period while it takes around 15 minutes during US business hours.

 

 However, The usual process takes around 35/40 minutes as mentioned follows ( which should have been finished within 5/10 minutes :(
  1. SharePoint Online Site creation - 7-10  minutes
  2. Add ins + template customization ( Root Site ) - 5/10 minutes
  3. Branding customization ( Root Site ) - 1-2 minutes
  4. Sub site creation - 1/2 minutes
  5. Add ins + Template Customization ( Subsite ) - 5/10 minutes
  6. Branding customization ( Sub site ) - 1/2 minutes

 

Has anyone in the past faced such a situation? Is there any best practices to follow to avoid longer time period for the deployment ? Or it could  be related O365 tenant configuration ?

 

Any help will be highly appreciated, Thank you in advance !

 

Best Regards,
1 Reply

Hello, I'm also having this issue with template provisioning, is taking too much time to complete (90 minutes).

 

I posted a question about this in Stack Exchange.

Also, it seems somebody also had this issue and published a post on the GitHub project.

It seems that installing the program that uses CSOM in the Azure service with the correct resources allows the program to run faster, although I do not know why this happens, and why installing the program in a server has not the same results. 

 

Did you manage to find a solution for this issue?