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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
TePe
Helper IV
Helper IV

Sharing Lakehouse Table via SPN - How to test

Hi,

I need to share a single table from a Lakehouse via SQL endpoint with an external process. This should be done via a SPN (Service Principal) because we can't handle MFA etc. in this scenario.

So I created a SPN in Entra (AD), shared the Lakehouse, granted access to the table. So in theory I should be done. However, I'd like to test the access before I give it to the external party. Any idea how I can do it? I tried to connect to the SQL Endpoint using SSMS and the SPN credentials, it fails already when I try to connect to the Lakehouse, the login name (name of the SPN, tested it with and without @domain) wasn't found. Tried it with Power BI, same effect.

Any clue how I can test it?

 

Thanks.... 

3 REPLIES 3
TePe
Helper IV
Helper IV

Hi,

 

so what I did: I got into Entra ID, created the SPN and assigned a credential. Nothing else. 
Then I got into Fabric, shared the Lakehouse with the SPN without any special permissions, no checkmarks set here. This should give me access via SQL Endpoint only.

Finally I granted access to the table using a "GRAND SELECT ON table TO spn".

Now the question is how I can connect and check that everything is running... For that I got the URL of the SQL Endpoint from the Lakehouse settings and tried to connect with SSMS and Power BI without any luck, yet...

 

THANKS for your support!

v-xuxinyi-msft
Community Support
Community Support

Hi @TePe 

 

Have you set any roles for your Service Principal?

 

Best Regards,
Yulia Xu

...in other words: @v-xuxinyi-msft What roles should I set and how?

 

Thanks,

 

 

Thomas

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors