Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created November 8, 2018 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/c021d9c9385d4aa5142f21b0a9dbccc2 to your computer and use it in GitHub Desktop.
Save AsishP/c021d9c9385d4aa5142f21b0a9dbccc2 to your computer and use it in GitHub Desktop.
## Create a SharePoint classic site
New-PnPTenantSite -Title "Title" -Url "https://tenant.sharepoint.com/sites/site1" -Lcid 1033 -TimeZone <TimeZoneID> -Template "STS#0" -StorageQuota <Size in MB> -StorageQuotaWarningLevel <Size in MB> -ResourceQuota <quota number> -Description "description" -Owner "owner@tenant.com" -RemoveDeletedSite -Wait
## Create a new Modern SharePoint site
New-PnPSite -Title "Title" -Url "https://tenant.sharepoint.com/sites/test" -Type CommunicationSite -SiteDesign Showcase -Description "description"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment