pnp / PnP-PowerShell

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

Create site with pnp, SPO, CSOM and API Extreme slow #2391

Open ghost opened 4 years ago

ghost commented 4 years ago

Category

Expected or Desired Behavior

I create with a api new site on sharepoint online. at the moment this takes more than 360 seconds to create. When i run the script after the timeout settings of 360 is exceeded my script returns with an internal server error 500 TimeOut

Observed Behavior

I tried to create servereal sites with the pnppowershell module, this takes for ever to complete

Steps to Reproduce

connect to pnponline / sposervice

run command for "New-[pnp/spo]Site" with the correct paramter for teamsitesitecollection without a Unified GRoup.

With pnp this can take more than 240 seconds with spo above 80 seconds

Are there more people experience this problem?

msft-github-bot commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost commented 4 years ago

Anyone that has this problem also.

TOday i tested the create new teamsites without unified group with following commands.

new-pnptenantsite -title $title -url $Url -owner $owner -timezone [4] -template "STS#3" new-pnptenantsite -title $title -url $Url -owner $owner -timezone [4] -template "STS#3" -wait

the first one is very quick but access to the site seems to takes longer

with the -wait on the end takes arround 50 up to 357 seconds

i also use the new-pnpsite, but this command creates teamsite with an unified group so didnt work for the testing

andrewconnell commented 4 years ago

I believe the -wait flag simply makes it synchronous and not async (not wait around for it to complete).

This is more about the PNP PowerShell question though... as they may have more insights.

Transferring...

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

rsperre commented 4 years ago

By setting -Wait:$false on New-PNPSite site creation is back to how it used to be.