Forum Discussion

Sayan DuttaMajumdar's avatar
Sayan DuttaMajumdar
Copper Contributor
Mar 05, 2017

Error:Microsoft.SharePoint.Client.ServerException: Argument SiteUrl must be a tenant administration

Hello- I ma using PNP site provisioning engine to create sites. But while running the batch and at the time of creation of site it is giving error:

"Microsoft.SharePoint.Client.ServerException: Argument SiteUrl must be a tenant administration site."

While I have used Poershell to make the site collection as tenant administration site. Also the apps are having Full Control permission in the site.

Any help will be much appreaciated.

  • paulpascha's avatar
    paulpascha
    Bronze Contributor

    Did you connect / authenticate to the SharePoint Admin Center site (https://[tenantname]-admin.sharepoint.com before executing your PowerShell script? Typically, before executing your PowerShell script to create sites (site collections), you'd first have to connect to SharePoint Online using one of the Connect-SPOService / Connect-SPOnline / Connect-PnPOnline PowerShell commands and specify your SharePoint Admin Center site with a least SharePoint Administrator credentials

Resources