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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Bayernboy23
Frequent Visitor

Fabric Notebook - Loading Data (API and On-prem DB) into Fabric Notebook through Python Modules

I am trying to use a Fabric Notebook to create Python code that pulls data from a internal API (Google Apigee) with data from a on-premises SQL Server database. I am able to run the code locally on my desktop via the requests and pymssql python modules, but I seem to run into issues when running the code on a Fabric notebook. There seems to be a disconnect when connecting to both the API and on-prem database. I have custom M code in Power Query that can pull the API and SQL databse both on my PBI desktop and in the cloud. The two connections have a gateway configured and are online in the service.  

 

Does anyone know if you need a gateway configured for this? If so, how can we configure a gateway and assign it to the Fabric notebook. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Bayernboy23,

Perhaps you can take alooka t the following document about conjugation gateway for fabric product if helpes for your scenario:

How to access on-premises data sources in Data Factory - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
NEJO
Advocate I
Advocate I

We have similar issues trying to connect Fabric notebook to on premise APIs, Odata, etc.  The notebook doesn't support the on premise gateway, and am finding that the Dataflow gen2 option is much slower than I would have liked.

 

You can vote the idea here though.

 

Microsoft Idea 

Anonymous
Not applicable

HI @Bayernboy23,

Perhaps you can take alooka t the following document about conjugation gateway for fabric product if helpes for your scenario:

How to access on-premises data sources in Data Factory - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.