Forum Discussion

Etsu0612's avatar
Etsu0612
New Member
1 year ago
Solved

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?

 

6 Replies

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      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.

      • Anonymous's avatar
        Anonymous
        Not applicable

        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 

    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.