Commands › SharePoint Online
New-SPOContainerType
This cmdlet creates a new container type of standard or trial status. The standard container type can be created with the regular billing structure or direct to customer billing structure.
Quick start script
# New-SPOContainerType — 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-SPOContainerType
$before | Format-List
# 3. Make the change (dry run first)
New-SPOContainerType -ContainerTypeName <String> -OwningApplicationId <Guid> -WhatIf
New-SPOContainerType -ContainerTypeName <String> -OwningApplicationId <Guid>
# 4. Verify and diff
$after = Get-SPOContainerType
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
New-SPOContainerType [-ContainerTypeName] <String> -OwningApplicationId <Guid>
[-ApplicationRedirectUrl <String>] [-TrialContainerType] [-IsPassThroughBilling]
[-IsGovernableByAdmin <Boolean>] [-IsArchiveEnabled <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.