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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Etsu0612
New Member

Accessing Python API via power bi with on-premises gateway and private endpoint

I have a python api hosted inside a Linux machine which needs to be called from Power BI report with private network. If I install on-premises gateway and private endpoint will u be able to access it?

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Neither "python"  nor "Linux machine"  matter.  If the gateway can see the IP and then port of the API then you can use that.

View solution in original post

v-tsaipranay
Community Support
Community Support

Hi @Etsu0612 ,

Thanks for reaching out to the Microsoft fabric community forum.

 

We appreciate the input provided by @lbendlin, in addition to that I am also including some Microsoft Documentations for better understanding. 
https://learn.microsoft.com/en-us/power-bi/enterprise/service-security-private-links-on-premises

https://learn.microsoft.com/en-us/fabric/security/security-private-links-overview

 

I am also attaching a link to a thread with a similar issue that was resolved. Please review it to gain a better understanding of the problem.

https://community.fabric.microsoft.com/t5/Service/On-Premises-Gateway-for-Linux-Server/m-p/647780

 

I hope my suggestions give you good ideas, if you need any further assistance, feel free to reach out.

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

View solution in original post

6 REPLIES 6
Poojara_D12
Super User
Super User

Hi @Etsu0612 

Yes, if you install an on-premises data gateway and configure a private endpoint, Power BI should be able to access your Python API hosted inside the Linux machine on a private network. The on-premises data gateway acts as a bridge between Power BI (which operates in the cloud) and your on-premises or private network resources. When properly configured, it allows Power BI to securely fetch data from your API without exposing it to the public internet. Additionally, setting up a private endpoint ensures that communication between Power BI and your API remains within the private network, eliminating the need for public IPs. However, for this setup to work, you must configure the gateway correctly with the necessary data source settings, ensure network connectivity (such as firewall rules and DNS resolution), and authenticate requests securely using appropriate credentials or API keys.

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS
v-tsaipranay
Community Support
Community Support

Hi @Etsu0612 ,

Thanks for reaching out to the Microsoft fabric community forum.

 

We appreciate the input provided by @lbendlin, in addition to that I am also including some Microsoft Documentations for better understanding. 
https://learn.microsoft.com/en-us/power-bi/enterprise/service-security-private-links-on-premises

https://learn.microsoft.com/en-us/fabric/security/security-private-links-overview

 

I am also attaching a link to a thread with a similar issue that was resolved. Please review it to gain a better understanding of the problem.

https://community.fabric.microsoft.com/t5/Service/On-Premises-Gateway-for-Linux-Server/m-p/647780

 

I hope my suggestions give you good ideas, if you need any further assistance, feel free to reach out.

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

Hi @Etsu0612 ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

Hello @Etsu0612 ,

 

I wanted to follow up on our previous suggestions regarding accessing Python API via power bi with on-premises gateway and private endpoint. We would love to hear back from you to ensure we can assist you further. Also thankyou @Poojara_D12  for your inputs.

If my response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.

 

Thank you.

Hi @Etsu0612 ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

lbendlin
Super User
Super User

Neither "python"  nor "Linux machine"  matter.  If the gateway can see the IP and then port of the API then you can use that.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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