Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I want to run some APIs against my Gateway using the Try Me pages on Microsoft's site. However I can't find out where my Gateway ID is in order to run them
Can anyone out there point me in the right direction to obtain this ID?
Thanks
Solved! Go to Solution.
Here's one way of doing it.
#optional
Install-Module -Name OnPremisesDataGatewayHAMgmt -Scope CurrentUser
Import-Module -Name OnPremisesDataGatewayHAMgmt
# end optional
Login-OnPremisesDataGateway
foreach ($i in Get-OnPremisesDataGatewayClusters) {
$i.gateways | ConvertFrom-Json | Format-Table gatewayName,isAnchorGateway,gatewayClusterStatus,gatewayVersion,gatewayMachine,gatewayObjectId -AutoSize
}
The gateway ID is the id of the anchor cluster member.
Here's one way of doing it.
#optional
Install-Module -Name OnPremisesDataGatewayHAMgmt -Scope CurrentUser
Import-Module -Name OnPremisesDataGatewayHAMgmt
# end optional
Login-OnPremisesDataGateway
foreach ($i in Get-OnPremisesDataGatewayClusters) {
$i.gateways | ConvertFrom-Json | Format-Table gatewayName,isAnchorGateway,gatewayClusterStatus,gatewayVersion,gatewayMachine,gatewayObjectId -AutoSize
}
The gateway ID is the id of the anchor cluster member.