Open nstruds opened 4 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Just came here to see if someone else is facing the same thing. Tested against two different tenant also. Site creation is taking +20 minutes or the site it self is created in the tenant but the call back to my script that the process was successful takes a long time.
I had the same issue with both Nov and Oct updates. Went back to 3.13.1909.0 and it's resolved now. Run unistall-module untill all versions are removed and install 3.13.1909.0 using -requiredversion
@erwinvanhunen told us that this is intended behavior now. Before the update site creation was not completely finished as Microsoft was running some background actions on site creation. Now Microsoft seems to provide a flag to allow PnP Powershell to know when the site creation is completely done. They are using this flag now to make sure that all site creation actions are finished.
I will also wait until the CSOM APIs issue that is currently active is fixed before making any conclusion regarding the speed. I also saw some 500 errors while testing this and at least those are related to the general issues on the APIs.
I believe it goes deeper: We are seeing the same behavior using PnP Core from CSOM C#
I've been experiencing the same issue, however I've noticed that if I specify the site owner as a parameter, the site creation takes around 20-25 seconds (although only for Communication site type and not for Team)
By specifying -Wait:$false this check is skipped. Not sure why the behaviour is different when omitting the switch parameter:
var returnedContext = OfficeDevPnP.Core.Sites.SiteCollection.Create(ClientContext, creationInformation, noWait:!Wait);
Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:
Reporting an Issue or Missing Feature
New-PnPSite cmdlet is really slow (+20minute for site creations)
Expected behavior
It usually finishes between 1-2 minutes.
Actual behavior
Steps to reproduce behavior
I'm using version 3.15.1911.0 Happens when I use either:
New-PnPSite -Type TeamSite -Title $alias -Alias $alias
orNew-PnPSite -Type CommunicationSite -Title $commSiteTitle -Url $commSiteUrl
I tried in two different tenants with the same problem using the same version. Also happens online through Azure Runbook. This doesn't happen with version 3.14.1910.0
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.15.1911.0
How did you install the PnP-PowerShell Cmdlets?