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
New-PnPUnifiedGroup
Go and check the site settings. Their will most likely only be a few options.
Run Apply-PnPProvisioningTemplate on the newly created site.
Wait until site settings are all there. Could take up to an hour.
Run Apply-PnPProvisioningTemplate again. Should complete successfully.
Which version of the PnP-PowerShell Cmdlets are you using?
[x] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
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
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?