TMAegisBeta
更多 power-platform 規則

Microsoft Power Platform

TMA-POWERPLATFORM-ENV-CREATION

Ensure production environment creation is restricted to administrators

中等級 1自動化power-platform

說明

Unrestricted environment creation leads to unmanaged environments outside DLP and backup governance. Requires Microsoft.PowerApps.Administration.PowerShell and an authenticated session (Add-PowerAppsAccount) as a Power Platform administrator; the audit throws if the module is missing.

檢查方式

稽核方法: Shell 指令

shell
$ErrorActionPreference = 'Stop'; if (-not (Get-Command Get-TenantSettings -ErrorAction SilentlyContinue)) { throw 'Microsoft.PowerApps.Administration.PowerShell is not loaded: run Add-PowerAppsAccount first' }; $s = Get-TenantSettings -ErrorAction Stop; if ($s.disableEnvironmentCreationByNonAdminUsers -eq $true) { 'compliant' } else { 'noncompliant' }
預期輸出
compliant

修補方式

修補方法: 操作指南或基礎設施修補檔

Power Platform admin center > Settings > Tenant settings > Production environment assignments > Only specific admins (or $s = Get-TenantSettings; $s.disableEnvironmentCreationByNonAdminUsers = $true; Set-TenantSettings -RequestBody $s).

屬性

作業系統
不限
標籤
power-platformgovernance
參考資料
CIS Microsoft Dynamics 365 Power Platform Benchmark v1.0.1 - Environment creation (no dedicated CIS benchmark exists for Power Platform)

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target power-platform