Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

[PPDataGatewayInstallationPolicy] New resource

Open ykuijs opened this issue 2 years ago • 1 comments

Description

In the Power Platform Admin Center, you can limit the people who are able to install Data Gateways: Power Platform Admin Center> Data (Preview) >Manage gateway installers > Restrict users in your organization from installing gateways

Proposed properties

IsSingleInstance - Boolean LimitDataGateInstallation - Boolean

Special considerations or limitations

Cmdlets: Set-DataGatewayTenantPolicy: https://docs.microsoft.com/en-us/powershell/module/datagateway/set-datagatewaytenantpolicy Get-DataGatewayTenantPolicy: https://docs.microsoft.com/en-us/powershell/module/datagateway/get-datagatewaytenantpolicy

Note: These cmdlets require PowerShell v7!

The UI allows the configuration of users who are able to install data gateways, but there is no PowerShell cmdlets to do this.

Set-DataGatewayTenantPolicy -ResourceGatewayInstallPolicy Open
Get-DataGatewayTenantPolicy -Scope Organization

TenantObjectId                       Policy
--------------                       ------
abc9f896-233a-4369-bce8-99b13812345   None

Set-DataGatewayTenantPolicy -ResourceGatewayInstallPolicy Restricted
Get-DataGatewayTenantPolicy -Scope Organization

TenantObjectId                                            Policy
--------------                                            ------
abc9f896-233a-4369-bce8-99b13812345 EnterpriseInstallRestricted

ykuijs avatar Mar 29 '22 11:03 ykuijs

This would require some changes on the MSCloudLoginAssistant front as well since this uses a separate PowerShell module to authenticate. https://www.powershellgallery.com/packages/DataGateway/3000.76.18

NikCharlebois avatar Jul 22 '22 11:07 NikCharlebois

Just to add some more details: The Data Gateway Package requires PS 7.0.0 and it looks like to be not maintained (Last Release April 2021)

andikrueger avatar Apr 05 '23 07:04 andikrueger