Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 2.96 KB

File metadata and controls

35 lines (31 loc) · 2.96 KB

#New-SPOTenantSite Creates a new site collection for the current tenant ##Syntax

New-SPOTenantSite -Title <String> -Url <String> [-Description <String>] -Owner <String> [-Lcid <UInt32>] [-Template <String>] -TimeZone <Int32> [-ResourceQuota <Double>] [-ResourceQuotaWarningLevel <Double>] [-StorageQuota <Int64>] [-StorageQuotaWarningLevel <Int64>] [-RemoveDeletedSite [<SwitchParameter>]] [-Wait [<SwitchParameter>]]

##Detailed Description The New-SPOTenantSite cmdlet creates a new site collection for the current company. However, creating a new SharePoint Online site collection fails if a deleted site with the same URL exists in the Recycle Bin. If you want to use this command for an on-premises farm, please refer to http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom.aspx

##Parameters

Parameter Type Required Description
Description String False
Lcid UInt32 False Specifies the language of this site collection. For more information, see Locale IDs Assigned by Microsoft: http://go.microsoft.com/fwlink/p/?LinkId=242911Id=242911.
Owner String True Specifies the user name of the site collection's primary owner. The owner must be a user instead of a security group or an email-enabled security group.
RemoveDeletedSite SwitchParameter False
ResourceQuota Double False 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 Resource Usage Limits on Sandboxed Solutions in SharePoint 2010 : http://msdn.microsoft.com/en-us/library/gg615462.aspx.
ResourceQuotaWarningLevel Double False
StorageQuota Int64 False Specifies the storage quota for this site collection in megabytes. This value must not exceed the company's available quota.
StorageQuotaWarningLevel Int64 False
Template String False 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 valid combination as returned from the Get-SPOnlineWebTemplate cmdlet.
TimeZone Int32 True Use Get-SPOTimeZoneId to retrieve possible timezone values
Title String True
Url String True 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 https://contoso.sharepoint.com/teams.
Wait SwitchParameter False
##Examples

###Example 1

PS:> New-SPOTenantSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Owner user@example.org -TimeZone 4

This will add a site collection with the title 'Contoso', the url 'https://tenant.sharepoint.com/sites/contoso', the timezone 'UTC+01:00' and the owner 'user@example.org'