Commands › SharePoint Online

Set-SPOContainerType

SharePoint Online Microsoft.Online.SharePoint.PowerShell Set-*

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)

ParameterTypeRequiredWhat it controls
-ApplicationRedirectUrl String yes This parameter sets the application redirect Url for the container type.
-AzureSubscriptionId Guid Use this parameter to set the Azure billing subscription ID you wish to attach to the container type.
-ContainerTypeId Guid yes Use this parameter to enter the container type ID
-ContainerTypeName String yes Use this parameter to pass the conatiner type name you intend to use for the container type
-ResourceGroup String yes Use this parameter to set the Azure resource group of the associated Azure billing subscription you intend to attach to the container type.
-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.

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.