-
Notifications
You must be signed in to change notification settings - Fork 196
Added SPO app priotization policy #840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4d926d1
Added commands for SPO app priortiziation policies
SimonBourdages 5c0b3a8
Merge branch 'MicrosoftDocs:main' into main
SimonBourdages 37666e8
fixed github author
SimonBourdages 9816514
Merge branch 'main' of https://github.com/killerewok2000/OfficeDocs-S…
SimonBourdages a5befb8
Fixed the word app priotization
SimonBourdages f51a72b
fixed feedback
SimonBourdages d50dc45
had missed a P->p
SimonBourdages 5b2b66f
attemp to address feedback about mandatory param for set spoapppriori…
SimonBourdages cc55578
fixed app priortization casing
SimonBourdages 638b800
changed param to guid for add
SimonBourdages f4376b4
fixed guid casing
SimonBourdages 371146a
fixed back ticks
SimonBourdages 543cc8e
fixed parameters to optionnal
SimonBourdages 2a1f0b6
fixed string for params
SimonBourdages 89e1a54
fixed value range
SimonBourdages File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
137 changes: 137 additions & 0 deletions
137
sharepoint/sharepoint-ps/sharepoint-online/Add-SPOAppPrioritizationPolicy.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| --- | ||
| external help file: sharepointonline.xml | ||
| Module Name: Microsoft.Online.SharePoint.PowerShell | ||
| online version: https://learn.microsoft.com/powershell/module/sharepoint-online/Add-SPOAppPrioritizationPolicy | ||
| applicable: SharePoint Online | ||
| title: Add-SPOAppPrioritizationPolicy | ||
| schema: 2.0.0 | ||
| author: killerewok2000 | ||
| ms.author: Sibourda | ||
| ms.reviewer: | ||
| --- | ||
|
|
||
| # Add-SPOAppPrioritizationPolicy | ||
|
|
||
| ## SYNOPSIS | ||
|
|
||
| Adds a new SPO app prioritization Policy to your tenancy. | ||
|
|
||
| ## SYNTAX | ||
|
|
||
| ```powershell | ||
| Add-SPOAppPrioritizationPolicies -AppId <Guid string of the app you need SPAP enabled for> -AzureSubscriptionId <Guid string of the Azure Subscription Id> -ResourceGroup <String> -Account <String> -QuotaMultiplier <int> | ||
| ``` | ||
|
SimonBourdages marked this conversation as resolved.
|
||
|
|
||
| ## DESCRIPTION | ||
|
|
||
| This cmdlet adds a new SPO app prioritization Billing policies to your tenancy. You must be a SharePoint you must be a SharePoint Tenant Admin to run the commandlet. You need to make sure you’re not adding a new billing policy for an app that already has a billing policy to it. | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
SimonBourdages marked this conversation as resolved.
Outdated
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### Example 1 | ||
|
|
||
| ```powershell | ||
| Add-SPOAppPrioritizationPolicies -AppId 48ab2ba9-5713-47d6-88a1-f6e3a0730833 -AzureSubscriptionId 48ab1ba4-9813-47d6-88a1-f6e3a0730822 -ResourceGroup newResourceGroup -Account newAccountName -QuotaMultiplier 5 | ||
| ``` | ||
|
|
||
| Example 1 adds the billing policy to your tenancy. It will not add the policy on invalid inputs or for apps that already have an associated policy. | ||
|
|
||
|
|
||
| ## PARAMETERS | ||
|
|
||
| ### -AppId | ||
|
|
||
| This parameter specifies the app ID of the application to onboard. | ||
| ```yaml | ||
| Type: String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -AzureSubscriptionId | ||
|
|
||
| This parameter describes the Azure subscription ID to which the container type needs to be associated. | ||
|
|
||
| ```yaml | ||
| Type: String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
|
|
||
| ### -ResourceGroup | ||
|
|
||
| This parameter describes the resource group to be used for the associated container type. | ||
|
|
||
| ```yaml | ||
| Type: String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -Account | ||
|
|
||
| This parameter describes the account to which the billing profile of the container type is associated with. | ||
|
|
||
| ```yaml | ||
| Type: String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
| ### -QuotaMultiplier | ||
|
|
||
| This parameter specifies the multiplier for the scaling feature. | ||
|
|
||
| ```yaml | ||
| Type: int | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
|
|
||
|
SimonBourdages marked this conversation as resolved.
|
||
| ## RELATED LINKS | ||
|
|
||
| [Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) | ||
|
|
||
| [Add-SPOAppPrioritizationPolicy](./Add-SPOAppPrioritizationPolicy.md) | ||
|
|
||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
| [Get-SPOAppPrioritizationPolicies](./Get-SPOAppPrioritizationPolicies.md) | ||
|
|
||
| [Set-SPOAppPrioritizationPolicy](./Set-SPOAppPrioritizationPolicy.md) | ||
|
|
||
| [Remove-SPOAppPrioritizationPolicy](./Remove-SPOAppPrioritizationPolicy.md) | ||
55 changes: 55 additions & 0 deletions
55
sharepoint/sharepoint-ps/sharepoint-online/Get-SPOAppPrioritizationPolicies.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| --- | ||
| external help file: sharepointonline.xml | ||
| Module Name: Microsoft.Online.SharePoint.PowerShell | ||
| online version: https://learn.microsoft.com/powershell/module/sharepoint-online/Get-SPOAppPrioritizationPolicies | ||
| applicable: SharePoint Online | ||
| title: Get-SPOAppPrioritizationPolicies | ||
| schema: 2.0.0 | ||
| author: killerewok2000 | ||
| ms.author: Sibourda | ||
| ms.reviewer: | ||
| --- | ||
|
|
||
| # Get-SPOAppPrioritizationPolicies | ||
|
|
||
| ## SYNOPSIS | ||
|
|
||
| Gets all existing SPO app prioritization Policies of your tenancy | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## SYNTAX | ||
|
|
||
| ```powershell | ||
| Get-SPOAppPrioritizationPolicies | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
| ``` | ||
|
|
||
|
|
||
| ## DESCRIPTION | ||
|
|
||
| This cmdlet adds a new SPO app prioritization Billing policies to your tenancy. You must be a SharePoint you must be a SharePoint Tenant Admin to run the commandlet. You need to make sure you’re not adding a new billing policy for an app that already has a billing policy to it. | ||
|
|
||
|
SimonBourdages marked this conversation as resolved.
|
||
| ## EXAMPLES | ||
|
|
||
| ### Example 1 | ||
|
|
||
| ```powershell | ||
| Get- SPOAppPrioritizationPolicies | ||
| ``` | ||
|
|
||
| Example 1 returns a collection of all existing SPO app prioritization Policies. Each Policy will contain PolicyId, AppId, AzureSubscription, ResourceGroup, Account, Enabled (status of this policy i.e true or false) and QuotaMultiplier | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
|
|
||
| ## PARAMETERS | ||
|
|
||
|
|
||
|
SimonBourdages marked this conversation as resolved.
|
||
|
|
||
| ## RELATED LINKS | ||
|
|
||
| [Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) | ||
|
|
||
| [Add-SPOAppPrioritizationPolicy](./Add-SPOAppPrioritizationPolicy.md) | ||
|
|
||
| [Get-SPOAppPrioritizationPolicies](./Get-SPOAppPrioritizationPolicies.md) | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| [Set-SPOAppPrioritizationPolicy](./Set-SPOAppPrioritizationPolicy.md) | ||
|
|
||
| [Remove-SPOAppPrioritizationPolicy](./Remove-SPOAppPrioritizationPolicy.md) | ||
67 changes: 67 additions & 0 deletions
67
sharepoint/sharepoint-ps/sharepoint-online/Remove-SPOAppPrioritizationPolicy.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| --- | ||
| external help file: sharepointonline.xml | ||
| Module Name: Microsoft.Online.SharePoint.PowerShell | ||
| online version: https://learn.microsoft.com/powershell/module/sharepoint-online/Remove-SPOAppPrioritizationPolicy | ||
| applicable: SharePoint Online | ||
| title: Remove-SPOAppPrioritizationPolicy | ||
| schema: 2.0.0 | ||
| author: killerewok2000 | ||
| ms.author: Sibourda | ||
| ms.reviewer: | ||
| --- | ||
|
|
||
| # Remove-SPOAppPrioritizationPolicy | ||
|
|
||
| ## SYNOPSIS | ||
|
|
||
| Deletes an existing SPO app prioritization Policy in your tenancy. | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## SYNTAX | ||
|
|
||
| ```powershell | ||
| Remove-SPOAppPrioritizationPolicy -PolicyId <string> | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
| ``` | ||
|
|
||
| ## DESCRIPTION | ||
|
|
||
| This cmdlet lets you delete an existing policy. | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### Example 1 | ||
|
|
||
| ```powershell | ||
| Remove-SPOAppPrioritizationPolicy -PolicyId 48abxxa9 | ||
| ``` | ||
|
|
||
| Example 1 deletes the policy bearing the policyId 48abxxa9. Running the Get command will no longer show the policy in the result. | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## PARAMETERS | ||
|
|
||
| ### -PolicyId | ||
|
|
||
| This parameter specifies the ID of policy. | ||
| ```yaml | ||
| Type: String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
|
SimonBourdages marked this conversation as resolved.
|
||
| ## RELATED LINKS | ||
|
|
||
| [Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) | ||
|
|
||
| [Add-SPOAppPrioritizationPolicy](./Add-SPOAppPrioritizationPolicy.md) | ||
|
|
||
| [Get-SPOAppPrioritizationPolicies](./Get-SPOAppPrioritizationPolicies.md) | ||
|
|
||
| [Set-SPOAppPrioritizationPolicy](./Set-SPOAppPrioritizationPolicy.md) | ||
|
|
||
| [Remove-SPOAppPrioritizationPolicy](./Remove-SPOAppPrioritizationPolicy.md) | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
111 changes: 111 additions & 0 deletions
111
sharepoint/sharepoint-ps/sharepoint-online/Set-SPOAppPrioritizationPolicy.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| --- | ||
| external help file: sharepointonline.xml | ||
| Module Name: Microsoft.Online.SharePoint.PowerShell | ||
| online version: https://learn.microsoft.com/powershell/module/sharepoint-online/Set-SPOAppPrioritizationPolicy | ||
| applicable: SharePoint Online | ||
| title: Set-SPOAppPrioritizationPolicy | ||
| schema: 2.0.0 | ||
| author: killerewok2000 | ||
| ms.author: Sibourda | ||
| ms.reviewer: | ||
| --- | ||
|
|
||
| # Set-SPOAppPrioritizationPolicy | ||
|
|
||
| ## SYNOPSIS | ||
|
|
||
| Edits an existing SPO app prioritization Policy in your tenancy. | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## SYNTAX | ||
|
|
||
| ```powershell | ||
| Set-SPOAppPrioritizationPolicy -PolicyId <string> -Enabled <boolean> -QuotaMultiplier <int> | ||
| ``` | ||
|
SimonBourdages marked this conversation as resolved.
|
||
|
|
||
| ## DESCRIPTION | ||
|
|
||
| This cmdlet lets you enable or disable an existing policy and/or change the quotaMultiplier associated with the policy. Note that disabling the policy does not delete the policy. If you need to change only one of the two parameters, retain the value of the non-changing parameter from the Get commandlet. Both the parameters are mandatory. | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
SimonBourdages marked this conversation as resolved.
Outdated
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### Example 1 | ||
|
|
||
| ```powershell | ||
| Set-SPOAppPrioritizationPolicies -PolicyId 48abxxa9 -Enabled $false -QuotaMultiplier 4 | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
| ``` | ||
|
|
||
| Example 1 disables the policy bearing the policyId 48abxxa9 | ||
|
|
||
| ### Example 2 | ||
|
|
||
| ```powershell | ||
| Set-SPOAppPrioritizationPolicies -PolicyId 48abxxa9 -Enabled $true -QuotaMultiplier 7 | ||
| ``` | ||
|
|
||
| Example 2 enables the policy bearing the policyId 48abxxa9 and also sets the QuotaMultiplier to 7. | ||
|
|
||
|
|
||
| ## PARAMETERS | ||
|
|
||
| ### -PolicyId | ||
|
|
||
| This parameter specifies the ID of policy. | ||
| ```yaml | ||
| Type: String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -Enabled | ||
|
|
||
| This parameter described the state wanted of the policy. | ||
|
|
||
| ```yaml | ||
| Type: Bool | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
|
|
||
| ### -QuotaMultiplier | ||
|
|
||
| This parameter specifies the multiplier for the scaling feature. | ||
|
|
||
| ```yaml | ||
| Type: int | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Applicable: SharePoint Online | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ## RELATED LINKS | ||
|
SimonBourdages marked this conversation as resolved.
|
||
|
|
||
| [Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) | ||
|
|
||
| [Add-SPOAppPrioritizationPolicy](./Add-SPOAppPrioritizationPolicy.md) | ||
|
|
||
| [Get-SPOAppPrioritizationPolicies](./Get-SPOAppPrioritizationPolicies.md) | ||
|
|
||
| [Set-SPOAppPrioritizationPolicy](./Set-SPOAppPrioritizationPolicy.md) | ||
|
SimonBourdages marked this conversation as resolved.
Outdated
|
||
|
|
||
| [Remove-SPOAppPrioritizationPolicy](./Remove-SPOAppPrioritizationPolicy.md) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.