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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
neees78
Helper II
Helper II

Azure sql connction error

I've pbi report connected to Azure sql instance (using different login details) than my windows login

When at desktop....report refresh fine ..no problem 

 

once it's published ..., a data source credential  error occurs,

This SQL instance don't need a gateway to be installed 

its cloud based but I suspect because I'm using different credintals to connect to it ..is the issue 

I publish reports using my normal user account 

at desktop I establish connection using Microsoft account option and then I use specific DB user name ....etc. 

 

 

 

1 ACCEPTED SOLUTION

You are right, the database is in the cloud, but as you can see the database is not generally available to the public. So you need to provide Power BI a way to get into the network / retrieve a IP-address that is allowed by the database for access. A gateway will help you do this 🙂



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

8 REPLIES 8
tackytechtom
Super User
Super User

Hm... You should be able to use your credentials in Power BI. Could it be that your IP is whitelisted in the Azure SQL Database which is why you are able to connect from PBI Desktop, but not the service? 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

ok ..you are correct 🙂  our office IP (statcis) was whitelisted by the DB provider

What I should ask them to do to get my report to refresh on the service 

 

 

 

Well awesome. I'd recommend to use a gateway 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

sorry for this (many questions) :)...but I use gateway for other sources but this one is cloud-based , thought we don't need a gateway ? is it possible to  connect via gateway ?  

You are right, the database is in the cloud, but as you can see the database is not generally available to the public. So you need to provide Power BI a way to get into the network / retrieve a IP-address that is allowed by the database for access. A gateway will help you do this 🙂



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

@tackytechtom  thanks for your help ,,, its working today , via on premises gateway 

configure few settings on connection and its refreshing perfectly now 

PBI service was not whitelisted on that SQL server , thus it worked on desktop but not once published 

tackytechtom
Super User
Super User

Hi @neees78 ,

 

Have you tried refreshing the credentials in the service, yet? 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Hi, tried a few times ....selecting all possible options (always failing) 

guess because I connect to SQL db using a different account than my PBI service 

 

Should the authentication be Database user name and password on desktop and PBI service 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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