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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rcpbi
Helper I
Helper I

Connect PowerBI to Azure SQL Database through on prem gateway

I have a report that uses Azure SQL database as a datasource.  I want to setup a scheduled refresh, but we do not want to expose the Azure SQL database to the public internet.  We tried using the on premise gateway to connect so we setup a connection using OAuth 2.0, but when I try to choose that connection in the service, it's not available to select.  

 

In the semantic model, the connection is listed under "Cloud Connections" and my only option to select on the "Maps to:" dropdown is "Personal Cloud Connection" and "Create a connection".  

 

When setting up the connection in PowerBI Desktop I chose SQL Server just like I do with other on prem sources.  Is there a step I'm missing?

 

 

 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Did you choose to allow your cloud connections to be served by the gateway?

 

lbendlin_0-1741732102804.png

 

View solution in original post

That test is not always conclusive. Better verify with a real data transfer.

View solution in original post

11 REPLIES 11
rcpbi
Helper I
Helper I

I ended up creating a new report with the same connection and the connection from the gateway shows up. There's something different about the pbix file, however, I cannot see anything noticeable when comparing the two files.  Thanks for your help @lbendlin

Hi @rcpbi ,

 

I'm glad to hear the new report works with the gateway. It seems the original .pbix file might have retained outdated metadata or cached settings. This can happen sometimes, and starting fresh often resolves it.

Thanks again to @lbendlin  for the helpful insights. If this solution resolves your issue, please mark it as accepted to help others with similar questions.

 

Thankyou.

Hi @rcpbi ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @rcpbi ,


I wanted to check if you had the opportunity to review the information provided by @lbendlin . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

lbendlin
Super User
Super User

Did you choose to allow your cloud connections to be served by the gateway?

 

lbendlin_0-1741732102804.png

 

Thanks.  This setting on the gateway was not enabled so we enabled both, however, I'm still unable to select the new connection.   

 

The new connection was created as an "On-premises" connection.  

Was the connection test in the gateway successful?

Yes, the connection in the gateway was successful.

how did you test that? Did you install Power BI Desktop on the gateway VMs and created a successful connection from that?

When you setup the connection on the Gateway, there's a checkbox that says "Skip Test Connection".  We did not check this box so our assumption is, it runs a test before creating the connection otherwise it won't allow you to create the connection.

That test is not always conclusive. Better verify with a real data transfer.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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