Commands › SharePoint Online
Set-SPOContainerType
Sets or updates one or more property values of a trial, standard or a direct to customer billed container type.
Quick start script
# Set-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)
Set-SPOContainerType -ApplicationRedirectUrl <String> -ContainerTypeId <Guid> -ContainerTypeName <String> -WhatIf
Set-SPOContainerType -ApplicationRedirectUrl <String> -ContainerTypeId <Guid> -ContainerTypeName <String>
# 4. Verify and diff
$after = Get-SPOContainerType
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 4 parameter sets
ContainerTypeName
Set-SPOContainerType -ContainerTypeId <Guid> [-ContainerTypeName] <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
OwningApplicationId
Set-SPOContainerType -ContainerTypeId <Guid> [-OwningApplicationId] <Guid> [-WhatIf] [-Confirm]
[<CommonParameters>]
AzureSubscriptionId
Set-SPOContainerType -ContainerTypeId <Guid> [[-AzureSubscriptionId] <Guid>] [-ResourceGroup] <String>
[-WhatIf] [-Confirm] [<CommonParameters>]
ApplicationRedirectUrl
Set-SPOContainerType -ContainerTypeId <Guid> [-ApplicationRedirectUrl] <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
Parameters (7)
Message Center changes mentioning this command
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.