Set-SPOContainerType

设置或更新试用版、标准或直接客户计费容器类型的一个或多个属性值。

语法

ContainerTypeName

Set-SPOContainerType
    [-ContainerTypeName] <String>
    -ContainerTypeId <Guid>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

OwningApplicationId

Set-SPOContainerType
    [-OwningApplicationId] <Guid>
    -ContainerTypeId <Guid>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

AzureSubscriptionId

Set-SPOContainerType
    [[-AzureSubscriptionId] <Guid>]
    [-ResourceGroup] <String>
    -ContainerTypeId <Guid>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ApplicationRedirectUrl

Set-SPOContainerType
    [-ApplicationRedirectUrl] <String>
    -ContainerTypeId <Guid>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

此 cmdlet 使用提供的新值更新容器类型的现有属性。 cmdlet 可用于更改容器类型的基本信息,例如容器类型名称或容器类型的计费信息。

您必须是 SharePoint Embedded 管理员才能运行 cmdlet。

虽然您只需要是 SharePoint Embedded Administrator 即可设置容器类型的基本信息,但您需要所有者或参与者对与容器类型关联的现有计费订阅以及新计费订阅的访问权限,以更改容器类型的计费信息。 无法更新的参数列表包括容器类型 ID 和拥有应用程序 ID。

有关 SharePoint Embedded Containers 的权限和Windows PowerShell的最新信息,请参阅 SharePoint Embedded Containers Management Shell 简介中的文档。

示例

示例 1

Set-SPOContainerType -ContainerTypeId da1d89b3-b4cf-4c0a-8e1c-0d131c57544f -OwningApplicationId 12a9d93c-18d7-46a0-b43e-28d20addd56a - ContainerTypeName 'Red Container Type'

示例 1 将容器类型名称设置为“红色容器类型”

示例 2

Set-SPOContainerType -ContainerTypeId da1d89b3-b4cf-4c0a-8e1c-0d131c57544f –Azure Subscription 12a9d93c-18d7-46a0-b43e-28d20addd56a -ResourceGroup RG200

在示例 2 中,更新了容器类型的计费配置文件。

示例 3

Set-SPOContainerType -ContainerTypeId 01f62754-0873-4ec6-ab4a-3eed48ba8be7 -OwningApplicationId 994b9586-253e-4a77-b51 - ContainerTypeName 'Blue Container Type'

在示例 3 中,试用版容器类型名称更新为“蓝色容器类型”

参数

-ApplicationRedirectUrl

此参数设置容器类型的应用程序重定向 URL。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

ApplicationRedirectUrl
Position:0
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-AzureSubscriptionId

使用此参数可设置要附加到容器类型的 Azure 计费订阅 ID。

参数属性

类型:System.Guid
默认值:None
支持通配符:False
不显示:False

参数集

AzureSubscriptionId
Position:1
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Confirm

提示你在运行 cmdlet 之前进行确认。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ContainerTypeId

使用此参数输入容器类型 ID

参数属性

类型:System.Guid
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ContainerTypeName

使用此参数传递要用于容器类型的 conatiner 类型名称

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

ContainerTypeName
Position:0
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ResourceGroup

使用此参数可设置要附加到容器类型的关联 Azure 计费订阅的 Azure 资源组。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

AzureSubscriptionId
Position:0
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:无线

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object