This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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
Thanks in advance for any piece of advice !
As it currently stands, using gateway commandlets with SPN is not possible.
You can only call them with an account having PBI Admin role
Hey @RakeshSinghr , thanks for your reply !
But then why does Connect-DatagatewayServiceAccount allows SPN ? Is there a chance that gateway cmdlets will be used with SPN in the future ?
Also, is there a workaround for this (Call an API ? Something else ? ) or to at least avoid the authentication window when connecting ?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |