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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors