LoginSignup
3
1

More than 3 years have passed since last update.

Office365のPowerPlatform製品のセルフ購入機能のリリースについて

Posted at

はじめに

2019.10.31にMicrosoftからPowerPlatform製品のセルフ購入機能のリリースが発表されましたね。

2019.11.20にPowerShellによる無効化の方法を通知されたので、そちらの内容をまとめます。

概要

MSCommerce powershell モジュールを用いて、セルフ購入機能の設定状態の表示と無効化ができます。

必要なもの

・windows10デバイス
・デバイスに対する管理者のアクセス許可
・テナントにおけるグローバル管理者か課金管理者の権限

全コマンド

モジュールのインストール

Install-Module -Name MSCommerce

モジュールをpowershellセッションにインポート

Import-Module -Name MSCommerce

モジュールに接続する(管理権限を持つユーザー名・パスワードが必要)

Connect-MSCommerce 

今の有効/無効状態の確認

Get-MSCommercePolicy -PolicyId AllowSelfServicePurchase 

全てのセルフサービス購入可の製品の状態と各製品の状態の確認

Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase 

表 使用可能な製品とProductId

Product ProductId
Power Apps per user CFQ7TTC0KP0P
Power Automate per user CFQ7TTC0KP0N
Power BI Pro CFQ7TTC0L3PB

特定の製品の設定状態を取得

Get-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0KP0N

特定の製品のセルフサービス購入を有効にする

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

特定の製品のセルフサービス購入を無効にする

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

無効にするコマンド例

モジュールのインストール、インポート、接続をします。

Install-Module -Name MSCommerce
Import-Module -Name MSCommerce
Connect-MSCommerce

無効にします。'Power Automate'の部分に無効化したいアプリケーション名を入力して実行します。

$product = Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase | where {$_.ProductName -match 'Power Automate'}
Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId $product.ProductID -Enabled $false

もしくは、下記コマンドでもそれぞれの無効化が実行できます

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

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

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

最後に

無効化できたでしょうか。

最後に先述の「全てのセルフサービス購入可の製品の状態と各製品の状態の確認」を実行し、ご確認ください。

Get-MSCommerceProductPolicies -(PolicyId) AllowSelfServicePurchase 
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1