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
chadgoldpps
New Member

Connect Power BI App to Azure Virtual Machine SQL database through a Virtual Network Data Gateway

Hi all,

 

I have a SQL database hosted on an Azure virtual machine. Currently, I am connecting to the database from my power bi app using a public IP and an on-premise gateway, which is working fine. I am now trying to connect through a virtual network data gateway so that I can switch the public IP off. 

 

I have created the vnet data gateway in my powerbi app and it is connected successfully. However, when I try and create a connection to my database through this gateway I get the error:

 

"Unable to create a connection for the following reason: We could not access the data source. Please make sure you have permission to access the data source and that your credentials are correct".

 

Screenshot 2023-09-04 at 10.58.09.png

 

I have triple-checked all the details. I have also created a subnet on the virtual machine delegated to 

Microsoft.PowerPlatform/vnetaccesslinks and have tried the following IP ranges: 10.6.5.0/24, 10.6.4.0/24, and 10.240.134.48/28 (these are just what I found in online forums/tutorials).
 
Any ideas of what to try next? I would appreciate any help in getting this working. Thanks!
0 REPLIES 0

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 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