Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

power bi gateway data source credential vs report data source credential

Hi,

Currently I am using direct connect to my on-premises SQL server data source via Enterprise Gateway.

My understanding is that if I publish a report to Powerbi service, the report will be using the credential (Credential A) specified in the report to connect to the SQL server regardless of which users use the report. 

 

The confusion comes in is that the SQL server data source configuration under the Enterprise Gateway also needs a credential  (Credential B). I can assume this is only used for Power BI internal use.

 

Apparently for the whole things to work, both credential A and B need to have sufficient access to the SQL server. But each report hit will hit the SQL server as credential A, I assume. Could anyone please confirm / clarify this?

 

Thanks,

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@ankitpatira Another test I think I found the truth. Which is, when the report is executed on the power bi service, it turns out using the credential B to hit the database - which is the gateway's data source credential. When the report is executed on the Power BI desktop, it uses credential A to hit the database. 

I used the profiler the trace the database users, so I am confident this is the case and it makes perfect sense. Any objections?

View solution in original post

3 REPLIES 3
ankitpatira
Community Champion
Community Champion

@Anonymous Yes credentials A which are stored in cloud (ofcourse encrypted) are passed to the gateway when you access report in power bi service. In gateway on-premise they are decrypted and used to access the data source. Can you not use credential A for both gateway and report data source. 

Anonymous
Not applicable

@ankitpatira Thanks for clarifying. I assume you asked me why not use credential A for both configuration. My consideration is that for the gateway setup (credential B), the credential B should be a system account rather than user account. What if the User B leaves the company and the account is closed, the data source for the Gateway will be broken. Credential A does not have this problem because if A leaves, new user C publishing the same report will be using credential C to connect to the server. Hope this makes sense.

Anonymous
Not applicable

@ankitpatira Another test I think I found the truth. Which is, when the report is executed on the power bi service, it turns out using the credential B to hit the database - which is the gateway's data source credential. When the report is executed on the Power BI desktop, it uses credential A to hit the database. 

I used the profiler the trace the database users, so I am confident this is the case and it makes perfect sense. Any objections?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors