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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How connect power bi desktop to data gateway inside vm

We have setup a postgre database in azure which is connected over a private endpoint to a vpn gateway. Now we want to access this database with power bi desktop. So basically we know, that we have to create a data gateway inside a virtual machine, which is in the same subnet/network as the database. But what next? How can we use this data gateway with power bi desktop? We don't want to use power bi desktop inside the virtual machine, but with our local machines. So there are multiple local machine which should be connected with a local power bi desktop to the data gateway (virtual machine).

 

When i start power bi desktop and click on "connect to postgre database", power bi desktop needs a server name and (optional) the database name.

 

See this picture:

 

plan.png

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 


 

So basically we know, that we have to create a data gateway inside a virtual machine, which is in the same subnet/network as the database. 

 


This gateway is used to refresh data in Power BI Service, not for Power BI Desktop.

 

For connecting to a Postgre Database in Azure using Power BI Desktop on local machine, please refer to these posts:

Create Power BI Connection to Azure SQL Database (mssqltips.com);

Connecting Power BI to PostgreSQL on Azure - DEV Community.

 

 

Best Regards,

Icey

 

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

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 


 

So basically we know, that we have to create a data gateway inside a virtual machine, which is in the same subnet/network as the database. 

 


This gateway is used to refresh data in Power BI Service, not for Power BI Desktop.

 

For connecting to a Postgre Database in Azure using Power BI Desktop on local machine, please refer to these posts:

Create Power BI Connection to Azure SQL Database (mssqltips.com);

Connecting Power BI to PostgreSQL on Azure - DEV Community.

 

 

Best Regards,

Icey

 

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

Anonymous
Not applicable

Hi Icey, this is a partial response.

 

Its missing the important part, how would users connect to data source using the data gateway via Power Bi Desktop CLient using their own machines?

 

Q1- Could Power BI Desktop connect to Bi Data Gateway which in turns connects to data source?

Note - direct connection to source is denied.

Q2- Could we keep the BI Data Gateway in App Tier?

 

Anyone, any ideas?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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