Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello
Could you please help me to understand the reason of my issue and what I shoud to check and configure ...
I tried to create new gateway with OAuth2 authorization to SQL Server database.
However I got error:
Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
ActivityId: d92248fd-1f67-4b58-97e1-16c0a7f81063
RequestId: 2a599971-cf07-4c36-8948-d1aff0fa714d
URI кластера: https://api.powerbi.com
Код состояния: 400
Время: Wed May 18 2022 18:20:01 GMT+0300 (Восточная Европа, летнее время)
My account has access to sql sever database amd I am able to connect using SQL managment studio as well.
Hey @odumna ,
I assume your SQL Server is running on-premises?
What version of SQL Server are you using?
How do you authenticate against the SQL Server from Power BI Desktop?
Do you want to pass the current Power BI user to the SQL Server or do you want to use a "fixed user" that is used by the gateway connection?
This article describes a little how you can configure a gateway with oAuth authentication but this works only with SQL Azure.
Regards,
Tom
Hello , Tom
I use SQL Server is running on-premises.
I am using Microsoft SQL Server 2019.
I use windows authorization type in Power BI Desktop to connect to Sql server database.
Now I need to create gateway that will pass to database current powerbi user credentials.
I need it because I have RLS on database level on some tables.
Hey @odumna ,
what you need is to configure Kerberos to enable communication between
PBI Service -- hop1 --> on-premises gateway -- hop2 --> SQL Server
This article gets you started: https://www.linkedin.com/feed/update/urn:li:activity:6932050287683600385?commentUrn=urn%3Ali%3Acomme...
And this one: Configure Kerberos for Power BI reports in Reporting Services - Guy in a Cube
If the the SQL Server and the om-premises gateway are in the same branch of the local AD it's quite straightforward.
Hopefully, this provides what you are looking for to tackle your challenge.
Regards,
Tom