Forum Discussion
power bi gateway - recovery key testing - validation
Hi, as we are preparing a change to our environment, we are looking for means to 'test' the recovery key we have.
To add nodes to the cluster for example one should have the recovery key.
Now we have the key but need to make sure it is actually the right one and working so we dont hit this issue during change execution.
The gateway is also used for power apps so we can't just go ahead and change it as it will render the power apps connections useless (as opposed to PBI where the credentials get re-encrypted automatically. )
Would there be some kind of command line / PowerShell way to test the recovery key in advance?
It appears it is impossible to test a recovery key.
Therefore as suggested by v-lionel-msft i submitted this idea.
https://ideas.powerbi.com/ideas/idea/?ideaid=4a9c7759-14d3-ea11-bf22-501ac5247547
Br, Kristof
6 Replies
- nickyvv
Most Valuable Professional
Hi KristofDM,
there certainly is.
If you look at PowerShell Cmdlets for On-premises data gateway management (Public Preview) you'll find several commands to manage your gateway.
In particular you can use Add-DataGatewayCluster with the parameter -RecoveryKey to add a cluster.
- v-lionel-msft
Community Support
Hi KristofDM ,
Maybe you can do this.
Step1:
Set new recovery key
Step2:
Enter the old recovery key and the new recovery key ( The new recovery key must be the same as the old recovery key), if you can modify it successfully, it means your old recovery key is correct.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.