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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

Getting datasource credentials error in Power-BI service for AWS PostgreSQL

Hello All,


I'm using AWS PostGreSQL as my data source to connect with Power-BI. It is working fine in Power-BI Desktop with below data source settings:


Now, when I publish the report in service and try to set datasource credentials, I'm getting error. Can anybody please help me out to fix the issue with Power-BI Service? 



Thanks in advance!



Community Support
Community Support

Hi , @VishrantiC 

Based on my research and investigate on the issue you met in the Power BI service currently, this error message indicates that there is a connectivity issue between Power BI Service and your AWS PostgreSQL data source. Here are some troubleshooting steps you can try to resolve the issue:


1 Check if the AWS PostgreSQL data source is accessible from the internet. You can try to connect to the data source using a tool like pgAdmin or psql from a machine outside your network to see if you can establish a connection.


2 Check if the firewall rules on your AWS PostgreSQL data source allow traffic from the Power BI Service IP addresses. If the Power BI Service IP addresses is changed every time and we can guarantee, We suggest to connect it using on-premise data gateway because the IP sent from on-premise data gateway is stable:

Add or remove a gateway data source - Power BI | Microsoft Learn


3 Check if the AWS PostgreSQL data source is configured to allow SSL connections. If SSL is required, make sure that the SSL certificate is valid and that the certificate chain is trusted by the machine running Power BI Service.


If none of these steps resolve the issue, you may need to query the backend logs from the PostgreSQL data source side to check the specific error message given for the further troubleshooting.


Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 


Best Regards,

Aniya Zhang

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

Helpful resources


Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors