Creating a SharePoint site using PowerShell script

Copper Contributor

Hello!  I have an E5 developer subscription, and I wanted to create a SharePoint site using a PowerShell script, but I received an error message stating the "current site is not a tenant administration site".  I thought this license would afford creating sites as an admin.  Is that not true?

4 Replies
Hi

Assuming your using the command Connect-SPOService, just add admin as part of the address e.g. "Connect-SPOService https://contoso-admin.sharepoint.com" - but even with an E5 license, you will still need SharePoint admin role.
As Paul mentioned, that should 100% solve your issue.

Here is a link to a video about provisioning SharePoint sites:
https://www.youtube.com/watch?v=yQzIIRuPb8Q&t=1s&ab_channel=ArefHalmstrand
Thank you! This worked perfectly.
Thank you for sending the YouTube link. Appreciate it!