編集

次の方法で共有


New-SPOAppBillingPolicy

Creates a new billing policy for an application owned by the tenant.

Syntax

New-SPOAppBillingPolicy
[[-ApplicationId] ]
[[-AzureSubscriptionId] ]
[[-ResourceGroup] ]
[[-AzureRegion] ]
[[-UsageCharges] ]

Description

This cmdlet creates a new billing policy for an application that is owned by the tenant running the cmdlet.

You must be a SharePoint Administrator to run this cmdlet.

Note

To use the New-SPOAppBillingPolicy cmdlet, an admin must authenticate to SharePoint Online using modern authentication.

Use the Connect-SPOService cmdlet shown below, which will prompt you to enter your credentials. If multi-factor authentication (MFA) is enabled, you will need to complete the MFA process (e.g., entering a verification code sent to your phone).

Connect-SPOService -Url https://(your-tenant)-admin.sharepoint.com

Replace (your-tenant) with your actual SharePoint Online domain, e.g. https://contoso-admin.sharepoint.com.

Examples

Example 1

New-SPOAppBillingPolicy -ApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da  -AzureSubscriptionId c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup "SPOPAYG" -AzureRegion "Uk-South" -UsageCharges AppOwnerIsCharged

Example 2

New-SPOAppBillingPolicy -ApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da  -AzureSubscriptionId c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup "SPOPAYG" -AzureRegion "Uk-South" -UsageCharges ConsumingTenantOfTheAppisCharged

Parameters

-ApplicationID

This parameter specifies the ID of the application.

Type:GUID
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-AzureRegion

The region of the Azure Subscription.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-AzureSubscriptionId

The unique identifier of the Azure Active Directory profile (Microsoft Entra ID) for billing purposes.

Type:GUID
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-ResourceGroup

Resource Group Name associated with the Azure Subscription

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-UsageCharges

This parameters determined who is charged for the usage of the application. This parameter supports two values - AppOwnerIsCharged or ConsumingTenantoftheAppischarged.

  • AppOwnerIsCharged : The tenant owning the application is charged for the usage
  • ConsumingTenantoftheAppischarged : The tenant using the application is charged for the usage.
Type:Switch
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online