Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Accessing Fabric Lakehouse from external web app



I have a simple Lakehouse set up with a couple of tables ingested via a Dataflow.  Everything is working fine within the Fabric portal.  I can use the SQL connection string to connect to the database via SSMS.


I would like to be able to query the database from an C# Core web application.  The application is registered in Azure AD as an App, and the App is a member of a security group that has Contributor access to the workspace in which the Lakehouse resides.


When attempting to connect to the SQL Endpoint, I'm receiving an error saying the connection was forcibly closed by the remote host.  


Does anyone know how to access the SQL Endpoint from code, or can point me at an example? I've been through a lot of the Fabric documentation but couldn't find anything that seemed to relate.



New Member

Experiencing a similar issue but with Python. Did you resolve this or find a work around? 

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors