Replies: 2 comments 3 replies
-
|
Would this standard fit what you're expecting: https://standards.cipp.app/?search=Disable+Self+Service+Licensing |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Sponsors can create feature requests if you want more control, otherwise, this already exists. :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if we could centrally roll out the policy to disable Self-Service License purchases.
It would need to run on a regular basis, as there is no master switch, and new products are by default enabled.
This script disables it for a single tenant (found online):
$enabledProductPolicies = Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase | Where-Object { $_.PolicyValue -eq "Enabled" }
if ($null -eq $enabledProductPolicies) {
Write-Host "No policies are enabled." -ForegroundColor Yellow
return
}
foreach ($policy in $enabledProductPolicies) {
$null = Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId $policy.ProductId -Value "Disabled"
Write-Host "The policy for $($policy.ProductName) has been set to disabled." -ForegroundColor Green
}
There is also a mechanism for providing instructions when someone is trying to purchase a license, which is visible here:
https://admin.cloud.microsoft/#/licenses/requestspageOn
However, I have not yet found out where that is controlled behind the scenes (if at all)
Beta Was this translation helpful? Give feedback.
All reactions