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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Lior0707
Frequent Visitor

Connect to Postgres SQL DB hosted on an Azure Server

I am trying to connect Postgres SQL DB hosted on an Azure Server to Power BI and getting certificate error 

 

"An error happened while reading data from the provider: 'The remote certificate is invalid according to the validation procedure.'"

3 REPLIES 3
Lior0707
Frequent Visitor

Thank you for the replay but my Postgres SQL DB hosted on an Azure Server and the sulotion is for AWS .

 

I tryied this sulotion but its not working for me .

 

Thank You !!

 

Lior 

Anonymous
Not applicable

Hi  @Lior0707 ,

The PostgresSQL connector doesn't work out of the box, you need to do quite a few things first

1. Install Npgsql which allows .NET access to PostgresSQL.  I installed it using the Pakagae Manager Console in Visual Studio; detailed instructions are here: https://www.nuget.org/packages/Npgsql/

You need to connect over SSL to AWS which isn't setup by default (on my Windows 10 machine anway)

2. Download the AWS public key from here https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem

3. Convert that to a certificate using https://www.sslshopper.com/ssl-converter.html (convert to PKCS#7/P7B)

4. Import that certificate to the Trusted Room Certificate described here http://www.cs.virginia.edu/~gsw2c/GridToolsDir/Documentation/ImportTrustedCertificates.htm

5. Test access from Power BI desktop using the PostgresSQL connector and it should work

 

This is the related document, you can view this content:

https://community.powerbi.com/t5/Community-Blog/Configuring-Power-BI-Connectivity-to-PostgreSQL-Data...

https://stackoverflow.com/questions/53921336/an-error-happened-while-reading-data-from-the-provider-...

https://stackoverflow.com/questions/60102636/power-bi-postgresql-data-import-error-the-remote-certif...

 

Best Regards,

Liu Yang

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

Thank you for the replay but my Postgres SQL DB hosted on an Azure Server and the sulotion is for AWS .

 

I tryied this sulotion but its not working for me .

 

Thank You !!

 

Lior 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors