Commands › SharePoint Online

New-SPOSite

SharePoint Online Microsoft.Online.SharePoint.PowerShell New-*

Creates a new SharePoint Online site collection for the current company.

Quick start script

# New-SPOSite — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOSite
$before | Format-List

# 3. Make the change
New-SPOSite -Owner <String> -StorageQuota <Int64> -Url <UrlCmdletPipeBind>

# 4. Verify and diff
$after = Get-SPOSite
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

New-SPOSite -Url <UrlCmdletPipeBind> -Owner <String> -StorageQuota <Int64> [-Title <String>]
 [-Template <String>] [-LocaleId <UInt32>] [-CompatibilityLevel <Int32>] [-ResourceQuota <Double>]
 [-TimeZoneId <Int32>] [-NoWait] [-EnableAgreementsSolution] [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-CompatibilityLevel Int32 This parameter no longer has any effect and only accepts a value of '15'.
-EnableAgreementsSolution SwitchParameter Whether to enable the Agreements Solution feature in the new site.
-LocaleId UInt32 Specifies the language of this site collection. For more information, see Locale IDs Assigned by Microsoft (<https://go.microsoft.com/fwlink/p/?LinkId=242911>). The Template and LocaleId parameters must be a valid...
-NoWait SwitchParameter Specifies to continue executing script immediately.
-Owner String yes Specifies the user name of the site collection's primary owner. The owner must be a email-enabled user instead of a security group or an email-enabled security group.
-ResourceQuota Double Specifies the quota for this site collection in Sandboxed Solutions units. This value must not exceed the company's aggregate available Sandboxed Solutions quota. The default value is 0. For more information, see...
-StorageQuota Int64 yes Specifies the storage quota for this site collection in megabytes. This value must not exceed the company's available quota.
-Template String Specifies the site collection template type. Use the `Get-SPOWebTemplate` cmdlet to get the list of valid templates. If no template is specified, one can be added later. The Template and LocaleId parameters must be a...
-TimeZoneId Int32 Specifies the time zone of the site collection. For more information, see [RegionalSettings.TimeZones property](/previous-versions/office/sharepoint-csom/jj171282(v=office.15)).
-Title String Specifies the title of the site collection.
-Url UrlCmdletPipeBind yes Specifies the full URL of the new site collection. It must be in a valid managed path in the company's site. For example, for company contoso, valid managed paths are <https://contoso.sharepoint.com/sites> and...

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.