Using Get-DataGatewayClusterDataSource in Powershell with Service Principal
Hi everyone !
I'm working on a project where we try to automatize the Gateways informations gathering. Make it non interactive.
For now, I successfully connnected to the service with the Connect-DataGatewayServiceAccount cmdlet with a SPN
Now my problem is when I try to get the Datasources in each cluster with the Get-DataGatewayClusterDataSource cmdlet, the result is empty and the following error returns :
>> TerminatingError(Get-DataGatewayClusterDatasource): "This cmdlet does not currently support service principals."
Do you know if ther's any workaround for this ? Because if we try to connect to the Gateways with a regular account, a first-party application pops for connecting the account, and it doesn't fit our need