|
| 1 | +--- |
| 2 | +external help file: sharepointonline.xml |
| 3 | +Module Name: Microsoft.Online.SharePoint.PowerShell |
| 4 | +online version: https://learn.microsoft.com/powershell/module/sharepoint-online/New-SPOAppBillingPolicy |
| 5 | +applicable: SharePoint Online |
| 6 | +title: New-SPOAppBillingPolicy |
| 7 | +schema: 2.0.0 |
| 8 | +author: arakesh |
| 9 | +ms.author: arakesh |
| 10 | +ms.reviewer: |
| 11 | +--- |
| 12 | +# New-SPOAppBillingPolicy |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | + |
| 16 | +Creates a new billing policy for an application owned by the tenant. |
| 17 | + |
| 18 | +## SYNTAX |
| 19 | + |
| 20 | +```powershell |
| 21 | +
|
| 22 | +New-SPOAppBillingPolicy |
| 23 | +[[-ApplicationId] <ApplicationId>] |
| 24 | +[[-AzureSubscriptionId] <AzureSubscriptionID>] |
| 25 | +[[-ResourceGroup] <ResourceGroup>] |
| 26 | +[[-AzureRegion] <AzureRegion>] |
| 27 | +[[-UsageCharges] <UsageCharges>] |
| 28 | +``` |
| 29 | + |
| 30 | +## DESCRIPTION |
| 31 | + |
| 32 | +This cmdlet creates a new billing policy for an application that is owned by the tenant running the cmdlet. |
| 33 | + |
| 34 | +You must be a SharePoint Administrator to run this cmdlet. |
| 35 | + |
| 36 | +> [!NOTE] |
| 37 | +> To use the New-SPOAppBillingPolicy cmdlet, an admin must authenticate to SharePoint Online using modern authentication. |
| 38 | +> |
| 39 | +> 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). |
| 40 | +> |
| 41 | +> |
| 42 | +> `Connect-SPOService -Url https://(your-tenant)-admin.sharepoint.com` |
| 43 | +> |
| 44 | +> Replace (your-tenant) with your actual SharePoint Online domain, e.g. `https://contoso-admin.sharepoint.com.` |
| 45 | +
|
| 46 | +## EXAMPLES |
| 47 | + |
| 48 | +### Example 1 |
| 49 | + |
| 50 | +```powershell |
| 51 | +
|
| 52 | +New-SPOAppBillingPolicy -ApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscriptionId c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup "SPOPAYG" -AzureRegion "Uk-South" -UsageCharges AppOwnerIsCharged |
| 53 | +
|
| 54 | +``` |
| 55 | +### Example 2 |
| 56 | + |
| 57 | +```powershell |
| 58 | +
|
| 59 | +New-SPOAppBillingPolicy -ApplicationId 50785fde-3082-47ac-a36d-06282ac5c7da -AzureSubscriptionId c7170373-eb8d-4984-8cc9-59bcc88c65a0 -ResouceGroup "SPOPAYG" -AzureRegion "Uk-South" -UsageCharges ConsumingTenantOfTheAppisCharged |
| 60 | +
|
| 61 | +``` |
| 62 | +## PARAMETERS |
| 63 | + |
| 64 | +### -ApplicationID |
| 65 | + |
| 66 | +This parameter specifies the ID of the application. |
| 67 | + |
| 68 | +```yaml |
| 69 | +Type: GUID |
| 70 | +Parameter Sets: (All) |
| 71 | +Aliases: |
| 72 | +Applicable: SharePoint Online |
| 73 | + |
| 74 | +Required: True |
| 75 | +Position: Named |
| 76 | +Default value: None |
| 77 | +Accept pipeline input: False |
| 78 | +Accept wildcard characters: False |
| 79 | +``` |
| 80 | +
|
| 81 | +### -AzureSubscriptionId |
| 82 | +
|
| 83 | +The unique identifier of the Azure Active Directory profile (Microsoft Entra ID) for billing purposes. |
| 84 | + |
| 85 | +```yaml |
| 86 | +Type: GUID |
| 87 | +Parameter Sets: Standard |
| 88 | +Aliases: |
| 89 | +Applicable: SharePoint Online |
| 90 | + |
| 91 | +Required: True |
| 92 | +Position: Named |
| 93 | +Default value: None |
| 94 | +Accept pipeline input: False |
| 95 | +Accept wildcard characters: False |
| 96 | +``` |
| 97 | +
|
| 98 | +### -ResourceGroup |
| 99 | +
|
| 100 | +Resource Group Name associated with the Azure Subscription |
| 101 | + |
| 102 | +```yaml |
| 103 | +Type: String |
| 104 | +Parameter Sets: Standard |
| 105 | +Aliases: |
| 106 | +Applicable: SharePoint Online |
| 107 | + |
| 108 | +Required: True |
| 109 | +Position: Named |
| 110 | +Default value: None |
| 111 | +Accept pipeline input: False |
| 112 | +Accept wildcard characters: False |
| 113 | +``` |
| 114 | +
|
| 115 | +### -AzureRegion |
| 116 | +
|
| 117 | +The region of the Azure Subscription. |
| 118 | + |
| 119 | +```yaml |
| 120 | +Type: String |
| 121 | +Parameter Sets: Standard |
| 122 | +Aliases: |
| 123 | +Applicable: SharePoint Online |
| 124 | + |
| 125 | +Required: True |
| 126 | +Position: Named |
| 127 | +Default value: None |
| 128 | +Accept pipeline input: False |
| 129 | +Accept wildcard characters: False |
| 130 | +``` |
| 131 | +
|
| 132 | +### -UsageCharges |
| 133 | +
|
| 134 | +This parameters determined who is charged for the usage of the application. This parameter supports two values - AppOwnerIsCharged or ConsumingTenantoftheAppischarged. |
| 135 | +- AppOwnerIsCharged : The tenant owning the application is charged for the usage |
| 136 | +- ConsumingTenantoftheAppischarged : The tenant using the application is charged for the usage. |
| 137 | + |
| 138 | +```yaml |
| 139 | +Type: Switch |
| 140 | +Parameter Sets: All |
| 141 | +Aliases: |
| 142 | +Applicable: SharePoint Online |
| 143 | + |
| 144 | +Required: True |
| 145 | +Position: Named |
| 146 | +Default value: None |
| 147 | +Accept pipeline input: False |
| 148 | +Accept wildcard characters: False |
| 149 | +``` |
| 150 | +## RELATED LINKS |
| 151 | +
|
| 152 | +[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps) |
| 153 | +
|
0 commit comments