pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
988 stars 662 forks source link

New-PnPUnifiedGroup taking up to an hour to fully provision site #1265

Open gabrielruss opened 6 years ago

gabrielruss commented 6 years ago

Reporting an Issue

I am attempting to provision a new modern team site via the New-PnPUnifiedGroup PowerShell command. The site is created and accessible but if you navigate to the site settings, there are almost no settings available. If you try to use Apply-PnPProvisioningTemplate during this time, you will receive Access Denied errors. It can sometime take up to an hour for the site to be fully provisioned and at that time I can run the Apply-PnPProvisioningTemplate command with no issues.

Expected behavior

I would expect to be able to use the Apply-PnPProvisioningTemplate command as soon as the site is created.

Actual behavior

Cannot apply a PnP Provisioning Template until around an hour after site/group creation.

Steps to reproduce behavior

  1. New-PnPUnifiedGroup
  2. Go and check the site settings. Their will most likely only be a few options.
  3. Run Apply-PnPProvisioningTemplate on the newly created site.
  4. Wait until site settings are all there. Could take up to an hour.
  5. Run Apply-PnPProvisioningTemplate again. Should complete successfully.

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

2.14.17

How did you install the PnP-PowerShell Cmdlets?

crossan007 commented 6 years ago

Yep - I'm seeing something similar to this too. Occasionally the sites will provision, or else they will totally fail.

Looks related to https://github.com/SharePoint/PnP-Guidance/issues/140