Forum Discussion
Data Gateway PowerShell module issue with `Add-DataGatewayClusterMember` command `-RegionKey` param
Hi, mikeeq
First, ensure that you are using the latest version of the DataGateway module. You can update the module using the following command:
Update-Module DataGateway
Double-check the syntax and ensure that the
-RegionKey
parameter is correctly specified. PowerShell parameters are case-sensitive, so make sure you're using the exact region key.
As a temporary workaround, you can try deploying the gateway cluster in the default Power BI tenant region if possible. If this is not feasible, continue using the manual process without the RegionKey parameter until a fix is available.
Here are examples of how you might use the commands with and without the -RegionKey parameter:
Without -RegionKey Parameter (Default Region)
$secureRecoveryKey = ConvertTo-SecureString "YourRecoveryKey" -AsPlainText -Force
Add-DataGatewayClusterMember -GatewayClusterId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -GatewayName "datagatewaypoc-2" -RecoveryKey $secureRecoveryKey -OverwriteExistingGateway
With -RegionKey Parameter (Specific Region)
$secureRecoveryKey = ConvertTo-SecureString "YourRecoveryKey" -AsPlainText -Force
Add-DataGatewayClusterMember -GatewayClusterId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -GatewayName "datagatewaypoc-2" -RecoveryKey $secureRecoveryKey -OverwriteExistingGateway -RegionKey "uksouth"
Try using the Get-DataGatewayCluster command with the -RegionKey parameter to see if it works correctly:
Get-DataGatewayCluster -RegionKey "uksouth"
If the -RegionKey parameter works with other commands, it indicates that the issue is specific to the Add-DataGatewayClusterMember command.
hackcrr
If this post helps, then please consider Accept it as the solution and kudos to this post to help the other members find it more quickly
"ensure that you are using the latest version of the DataGateway module."
It's mentioned in the first sentence that I'm using the latest version of the DataGateway module.
"If the -RegionKey parameter works with other commands, it indicates that the issue is specific to the Add-DataGatewayClusterMember command."
`-RegionKey` parameter works with other commands without any issues, there's only a problem with `Add-DataGatewayClusterMember` and maybe wth `Remove-DataGatewayClusterMember`, but as `add member` command doesn't work, I wasn't able to test the `remove member` command
- hackcrr2 years ago
Memorable Member
Hi, mikeeq
You can create a ticket by clicking the link below, which will have a dedicated engineer testing the current bug.
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
hackcrr
If this post helps, then please consider Accept it as the solution and kudos to this post to help the other members find it more quickly