datagateway
2 TopicsData Gateway PowerShell module issue with `Add-DataGatewayClusterMember` command `-RegionKey` param
Hi all, I recently encountered an issue with the latest version of DataGateway PowerShell module (latest version of PS7 and DataGateway service): https://www.powershellgallery.com/packages/DataGateway/3000.196.145 PS C:\> (Get-Module DataGateway).version Major Minor Build Revision ----- ----- ----- -------- 3000 196 145 -1 PS C:\> $PSVersionTable Name Value ---- ----- PSVersion 7.4.3 PS C:\> (Get-Item "C:\Program Files\On-premises data gateway\Microsoft.PowerBI.EnterpriseGateway.exe").VersionInfo.FileVersion 3000.226.5 `Add-DataGatewayClusterMember` command doesn't seem to respect `-RegionKey` parameter, whenever it's passed to the command, it cannot find the GatewayClusterId in the specified region. # Info: Gateway cluster xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx is created in uksouth region PS C:\> Add-DataGatewayClusterMember -GatewayClusterId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -GatewayName datagatewaypoc-2 -RecoveryKey $secureRecoveryKey -OverwriteExistingGateway -RegionKey uksouth Add-DataGatewayClusterMember: Gateway cluster xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx was not found When the cluster is deployed in a default PowerBI tenant region and when `-RegionKey` parameter is not passed then it works as it should. # Info: Gateway cluster xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx is created in PowerBI default tenant (northeurope in that case) PS C:\> Add-DataGatewayClusterMember -GatewayClusterId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -GatewayName datagatewaypoc-2 -RecoveryKey $secureRecoveryKey -OverwriteExistingGateway GatewayId GatewayObjectId GatewayName GatewayType --------- --------------- ----------- ----------- xxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx datagatewaypoc-2 Resource Also, `Add-DataGatewayClusterMember` is not documented at all, the only mention is in the blog post regarding release notes from 2023.10: https://learn.microsoft.com/en-us/powershell/module/datagateway/remove-datagatewayclustermember?view=datagateway-ps https://powerbi.microsoft.com/en-in/blog/on-premises-data-gateway-october-2023-release/ dazhang58KViews0likes10Comments