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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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