Forum Discussion
Sayan DuttaMajumdar
Mar 05, 2017Copper Contributor
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: Argu...
paulpascha
Mar 05, 2017Bronze 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
Sayan DuttaMajumdar
Mar 06, 2017Copper Contributor
I am creating a batch file for on Premises SP 2013.