I managed to install PowerBI Gateway programatically
Install-Module -Name DataGateway -Force -Scope AllUsers
Login-DataGatewayServiceAccount
Install-DataGateway -AcceptConditions
Now I am looking for a way to add this gateway to existing cluster. There is a function to remove gateway Remove-DataGatewayClusterMember, but for some reasons there is no function to add.
Is there anyway to add PowerBI Gateway to existing cluster using PowerShell Cmdlets or something else?
No, there is no way to add a cluster to an existing gateway. That cmdlet will only setup and create a new gateway cluster with the machine. Suggest you submit feedback for the Microsoft Power BI team here:
https://ideas.powerbi.com/