Skip to content

[BUG] New-PnpSite -Wait stalls #5104

@System-Admins-ath

Description

@System-Admins-ath

Reporting an Issue or Missing Feature

When creating a new site with the following code, the underlying Microsoft API never returns "isProvisionedComplete = true". Therefor the New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title 'MyTest' -Url 'https://contoso.sharepoint.com/sites/MyTest' -Owner '[email protected]' -Verbose -Wait; get cancelled.

Expected behavior

Return succesfully created

Actual behavior

Cmdlet get cancelled after 30 API calls or so.

Steps to reproduce behavior

Run New-PnPSite -Type TeamSiteWithoutMicrosoft365Group -Title 'MyTest' -Url 'https://contoso.sharepoint.com/sites/MyTest' -Owner '[email protected]' -Verbose -Wait;

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

3.1.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions