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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.