New-SPOAppBillingPolicy
为租户拥有的应用程序创建新的计费策略。
语法
Default (默认值)
New-SPOAppBillingPolicy
-ApplicationId <Guid>
-UsageCharges <String>
-AzureSubscriptionId <Guid>
-ResourceGroup <String>
-AzureRegion <String>
[<CommonParameters>]
说明
此 cmdlet 为运行 cmdlet 的租户拥有的应用程序创建新的计费策略。
您必须是 SharePoint 管理员才能运行此 cmdlet。
注意
若要使用 New-SPOAppBillingPolicy cmdlet,管理员必须使用新式身份验证对 SharePoint Online 进行身份验证。
使用下面显示的 Connect-SPOService cmdlet,这将提示输入凭据。 如果启用了多重身份验证 (MFA) ,则需要 (完成 MFA 过程,例如输入发送到手机的验证码) 。
Connect-SPOService -Url https://(your-tenant)-admin.sharepoint.com
将 (租户) 替换为实际 SharePoint Online 域,例如 https://contoso-admin.sharepoint.com.
示例
示例 1
New-SPOAppBillingPolicy -ApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscriptionId c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup "SPOPAYG" -AzureRegion "Uk-South" -UsageCharges AppOwnerIsCharged
示例 2
New-SPOAppBillingPolicy -ApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscriptionId c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup "SPOPAYG" -AzureRegion "Uk-South" -UsageCharges ConsumingTenantOfTheAppisCharged
参数
-ApplicationID
适用:SharePoint Online
此参数指定应用程序的 ID。
参数属性
| 类型: | System.Guid |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-AzureRegion
适用:SharePoint Online
Azure 订阅的区域。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-AzureSubscriptionId
适用:SharePoint Online
出于计费目的, (Microsoft Entra ID) Azure Active Directory 配置文件的唯一标识符。
参数属性
| 类型: | System.Guid |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ResourceGroup
适用:SharePoint Online
与 Azure 订阅关联的资源组名称
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-UsageCharges
适用:SharePoint Online
此参数确定谁为应用程序的使用付费。 此参数支持两个值 - AppOwnerIsCharged 或 ConsumingTenantoftheAppischarged。
- AppOwnerIsCharged:拥有应用程序的租户按使用量收费
- ConsumingTenantoftheAppischarged:使用应用程序的租户按使用量收费。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。