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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Connection failure Postgresql on AWS-RDS Instance in a private network from PowerBI Desktop & Servic

Hi all,
I have an AWS RDS (Postgresql) that is inside a private network - only accessable via a VPN and Bastian Host.
 I am able to establish connection  from PBI Desktop to  "Postgresal-RDS Instance." By creating SSh tunneling from my Laptop (localhost) to Bastian Host using   ODBC Driver.With this approach all the data is imported onto PBI desktop(import mode).
 But our requirement is to establish connection through a direct query to refresh data real time and generate the Reports Dynamically which I am not able to.
 I entered the database credentials into the Power BI desktop tool, and it not working correctly in the power bi desktop, getting a TimeOut Error.
 I must use directquery, i can't use import.
 
 Any help is appreciated.
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Please follow this do not miss any steps. Like adding a certificate. Else this will not work

 

https://community.powerbi.com/t5/Power-Query/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/td-p/135666

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Please follow this do not miss any steps. Like adding a certificate. Else this will not work

 

https://community.powerbi.com/t5/Power-Query/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/td-p/135666

Anonymous
Not applicable

Thanks amitchandak .

Sorry for late reply .

Following the above steps Installing the Cerificate in desktop solve the  issue in  desktop .

am able to establish direct query from PBI Desktop tool to RDS(postgres).

           But After publishing the  report to Service (https://app.powerbi.com/) again am facing same issue .

But when I install the gateway in my laptop we are able  to connect and refresh.

1)But my requirement is  without Gate way to connect direct query .how to achive this?

2)if the Gateway is necessary ,where  to install ?  on RDS instance?  how to install on linux servers ?

 

Plz suggest me the correct  way .

 

 

 

without gateway ERRORwithout gateway ERRORconnected with On-premise Gatewayconnected with On-premise Gatewaywithout gateway ERRORwithout gateway ERROR

  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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