共用方式為


Add-SPOContainerTypeBilling

將上述帳單設定檔詳細資料新增至標準容器類型。

語法

Default (預設值)

Add-SPOContainerTypeBilling
    -ContainerTypeId <Guid>
    -AzureSubscriptionId <Guid>
    -ResourceGroup <String>
    -Region <String>
    [<CommonParameters>]

Description

此 Cmdlet 會附加 Azure 訂用帳戶識別碼、資源群組和區域,並提供容器類型識別碼。

您必須是 SharePoint Embedded 系統管理員,才能執行此 Cmdlet。 您也必須擁有 Azure 訂用帳戶的擁有者或參與者權限、計費的作用中時間限制權限,以及資源群組。

如果您沒有 Azure 訂用帳戶,請遵循這裡的步驟來 建立訂用帳戶

如需適用於 SharePoint Embedded 容器的 Windows PowerShell 的權限和最新資訊,請參閱 SharePoint Embedded 容器管理命令介面簡介中的檔。

範例

範例 1

Add-SPOContainerTypeBilling - ContainerTypeId 1ea46f96-515c-49b5-bac5-002c33a5fa0e -AzureSubscriptionId d32cba02-d63c-4202-ade5-2134b0c54fe -ResourceGroup "RG100" -Region "East US"

範例 1 會將 Azure 訂用帳戶識別碼 「d32cba02-d63c-4202-ade5-2134b0c54fe」、資源群組 「RG100」 和區域 「美國東部」的計費設定檔附加至容器類型識別碼 「1ea46f96-515c-49b5-bac5-002c33a5fa0e」。

參數

-AzureSubscriptionId

適用:SharePoint Online

此參數描述容器類型需要相關聯的 Azure 訂用帳戶識別碼。

參數屬性

類型:System.Guid
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ContainerTypeId

適用:SharePoint Online

此參數會指定對應至 SharePoint Embedded 應用程式之容器類型的識別碼。

參數屬性

類型:System.Guid
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Region

適用:SharePoint Online

此參數描述與容器類型的計費設定檔相關聯的區域。

參數屬性

類型:System.String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ResourceGroup

適用:SharePoint Online

此參數說明要用於相關聯儲存器類型的資源群組。

參數屬性

類型:System.String
預設值: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