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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
amaaiia
Super User
Super User

Service Principal for semantic model authentication from SQL Analytics Endpoint

I have some tables in a Lakehouse and I want to use these tables as a data source for my PBI report. The semantic model connects to these tables using my personal account, but I have registered an APP to be able to use Service Principal as an authentication method.

 

The app is included in a security group X, and I have given access to the workspace where the Lakahouse is located to this security group, so the app has access to this data.

 

I try to create the connection in the following way:

amaaiia_0-1723462541889.png

 

The server is the SQL connection string of the SQL Analytics Endpoint associated to my Lakehouse.

As you can see, I get that error.

 

What additional configuration do I have to apply to the app?

 

2 ACCEPTED SOLUTIONS

Hi @amaaiia 

 

As mentioned, I don't think service principles are currently supported





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

I confirm that IT IS possible, both to connect to SQL Endpoint through Management Studio, and to create a connection to a SQL Endpoint by authenticating with Service Principal.

 

Management Studio:

1. I Copy SQL Enpoint Stirng from Fabric and paste it as Server Name. The I enter service principal values:

amaaiia_0-1724665985788.png

2. Connect and:

amaaiia_1-1724666072591.png

Success.

 

New connection in Fabric:

1. From connections pane, I create the new connection with Servive Principal authentication:

amaaiia_3-1724667402522.png

2. I have one report accessing data in direct lake mode from a semantic model:

amaaiia_4-1724667469185.png

3. In semantic model settings, I change the data source connection as the new serv_princ_conn:

amaaiia_5-1724667718128.png

5. I can refresh the semantic model and I can see the data in the report.

 

So yes, it seems Service Principal is working.

 

View solution in original post

6 REPLIES 6
GilbertQ
Super User
Super User

Hi @amaaiia 

 

That applies to the Warehouse from the Blog Post. And the way that he is connecting is using a .Net App which unfortunately will not work in the Power BI Service.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ ,

Mmm he is also connecting to the Lakehouse SQL Endpoint through SQL Server Management Studio using Service Principal. This is exactly what I'm trying to do. Well, it doesnt' matter if I create the connection from SQL Server Management Studio (I've also tried it) or from Fabric. At the end, what I'm trying to create is a connection to a SQL Analytics Endpoint string with a Service Principal authentication. But I can't.

 

Just check the post:

1. He gives SP acces to the Lakehouse (in my case, I have given access SP to the whole workspace with Contributor role):

amaaiia_0-1723542995806.png

2. Create the connection thorugh SQL Server Management Studio, indicating Server as SQL Endpoint and Authentication as SP:

amaaiia_1-1723543080888.png

Regards.

Hi @amaaiia 

 

As mentioned, I don't think service principles are currently supported





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

I confirm that IT IS possible, both to connect to SQL Endpoint through Management Studio, and to create a connection to a SQL Endpoint by authenticating with Service Principal.

 

Management Studio:

1. I Copy SQL Enpoint Stirng from Fabric and paste it as Server Name. The I enter service principal values:

amaaiia_0-1724665985788.png

2. Connect and:

amaaiia_1-1724666072591.png

Success.

 

New connection in Fabric:

1. From connections pane, I create the new connection with Servive Principal authentication:

amaaiia_3-1724667402522.png

2. I have one report accessing data in direct lake mode from a semantic model:

amaaiia_4-1724667469185.png

3. In semantic model settings, I change the data source connection as the new serv_princ_conn:

amaaiia_5-1724667718128.png

5. I can refresh the semantic model and I can see the data in the report.

 

So yes, it seems Service Principal is working.

 

GilbertQ
Super User
Super User

Hi @amaaiia 

 

As it stands today, it is not currently possible to use service principles to connect to the sequel endpoint I have read that this will change in the future, but for now you would need to use your personal account to connect.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.