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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Maciek_1000
Frequent Visitor

Secure connection with PostgrSQL

Hi,

I've managed to make secure connection with my PostgreSQL database. I've struggled to have it connected securely encrypted.

And with my Desktop version I'm using a certificate to validate it. Something like that

Maciek_1000_0-1626599993891.png

 

Certificate is installed on the server and on my computer. Hovewer I have no idea how to have the same construction in Power BI Service?

 

How can I establish encrypted connection in PostgreSQL on Desktop and on Power BI service as well? I've manged the first one (to have it on my desktop version, but have no idea how to have connections setup on server. Until now I have this info

Maciek_1000_1-1626600148006.png

 

Thanks for any hints! 🙂

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @Maciek_1000 

 

It appears that you will need to install the On-Premise Gateway. 

Then configure the On-Premise gateway with the same certificate and configuration you have done in Power BI Desktop.

Then finally create the data source to connect via the On-Premise gateway and it should then work.

 

Cannot connect on-premise gateway with postgres on PowerBI - Stack Overflow

Guidance for deploying a data gateway for Power BI - Power BI | Microsoft Docs





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

4 REPLIES 4
GilbertQ
Super User
Super User

Awesome thanks for letting us know!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Maciek_1000
Frequent Visitor

Thanks @GilbertQ,

 

After some research you helped me to find I think now I understand the gateway construction. Now it seems that the gateway is necessary. Thanks once again!

GilbertQ
Super User
Super User

Hi @Maciek_1000 

 

It appears that you will need to install the On-Premise Gateway. 

Then configure the On-Premise gateway with the same certificate and configuration you have done in Power BI Desktop.

Then finally create the data source to connect via the On-Premise gateway and it should then work.

 

Cannot connect on-premise gateway with postgres on PowerBI - Stack Overflow

Guidance for deploying a data gateway for Power BI - Power BI | Microsoft Docs





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ,

 

Thank you for your reply. Installing on premis gateway is exactly what I've done but on my Desktop installation. But in this situation it works only on desktop. I don't know how can I change it and where should I install this gateway so that it can work online (and I could use service for every user, on mobile etc.).

 

Maciek

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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