Disable Self-service purchase capabilities for Microsoft Power Platform

Microsoft has released the self-service purchase capabilities for Power Platform.

  • PowerApps
  • Power Automate (previously flow)
  • Power BI

Many of the tenants do not want this ability to be provided to users as they want to control it at organizational level.

Earlier this was planned for last year but as many organizations requested the capability to disable it so it has been delayed till it is developed.

Now Microsoft has released the Powershell module name MSCommerce, you can use it to disable this self-service purchase feature.

Install the module from Powershell gallery

https://www.powershellgallery.com/packages/MSCommerce/

Install-Module -Name MSCommerce

Once that is done, Connect-MScommerce (as Global or Billing Admin role for your tenant)

 

To view list of Power platform products enabled for self-service purchase type below command:

Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase

All three products are enabled for self-service purchase.

You can disable this policy for particular product by using below command or disable it for all three.

Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0KP0P -Enabled $False 

Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0L3PB -Enabled $False 

Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0KP0N -Enabled $False 

Now check again the status, you will see all three are disabled.

Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase

If you want to disable this in your organization then follow the above pwoershell commands.

 

Thanks for reading and downloading

Tech Wizard

http://techwizard.cloud

PowerShell Cheat Book

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s