Commands › SharePoint Online

New-SPOContainerType

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

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)

ParameterTypeRequiredWhat it controls
-ApplicationRedirectUrl String This parameter specifies the url of that the application should be redirected to.
-ContainerTypeName String yes This parameter names your container type for your SharePoint Embedded application.
-IsArchiveEnabled Boolean Use the `-IsArchiveEnabled` flag to enable archival of containers. Archival moves data to the cold tier, reducing storage costs. While archived, content is inaccessible until reactivated. Reactivation is immediate...
-IsGovernableByAdmin Boolean Using `-GovernableByAdmin`, you can decide whether consuming tenant administrators of the application should be provided management capabilities on Microsoft-enabled administrator support, through SharePoint admin...
-IsPassThroughBilling SwitchParameter This parameter is used to create a direct to customer billed container type.
-OwningApplicationId Guid yes This parameter specifies the ID of the SharePoint Embedded application.
-TrialContainerType SwitchParameter This parameter is used to specify that the cmdlet is used to create a trial container type and thereby the billing profile need not be provided.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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