Edit

Share via


New-SPOAppBillingPolicy

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

Syntax

Default (Default)

New-SPOAppBillingPolicy
    -ApplicationId <Guid>
    -UsageCharges <String>
    -AzureSubscriptionId <Guid>
    -ResourceGroup <String>
    -AzureRegion <String>
    [<CommonParameters>]

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

Applicable: SharePoint Online

This parameter specifies the ID of the application.

Parameter properties

Type:System.Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AzureRegion

Applicable: SharePoint Online

The region of the Azure Subscription.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AzureSubscriptionId

Applicable: SharePoint Online

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

Parameter properties

Type:System.Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroup

Applicable: SharePoint Online

Resource Group Name associated with the Azure Subscription

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UsageCharges

Applicable: SharePoint Online

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.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object