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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Franky_Piferoen
Frequent Visitor

Change datasource after publish from on premise to azure sql db

I've created some reports, for which I used an on premise sql server as datasource (Import). 

I used parameters to define the sqlserverInstanceName and DatabaseName.

I can publish and use these reports on app.powerbi.com.

But now I would like to schedule a refresch in app.powerbi.com and get the data from an Azure Sql DB.
Is this possible, or do I have to use Azure SQL DB as a source in power bi desktop before I publish my reports ?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Franky_Piferoen,

It is not possible to change data source in Power BI Service.

In Power BI Desktop, create a query that connects to Azure SQL database, then go into Query Editor and go to Advanced Editor, copy Source line. Go to SQL database query in Query Editor, Advanced Editor and replace the Source line. After that, publish your Power BI Desktop file to Power BI Service.

Regards,

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Franky_Piferoen,

It is not possible to change data source in Power BI Service.

In Power BI Desktop, create a query that connects to Azure SQL database, then go into Query Editor and go to Advanced Editor, copy Source line. Go to SQL database query in Query Editor, Advanced Editor and replace the Source line. After that, publish your Power BI Desktop file to Power BI Service.

Regards,

Hi,

 

thx for the answer. I had already changed the data source in power bi desktop by changing my parameter 'SqlServerInstanceName' to the url of the azure sql db  and published the reports.
This works, but I am missing the functionality to use the parameters to change the connection after the reports are published in app.powerbi.com.

I import a rather large amount of data, which works much faster if i can import these from my on premise sql server while developing.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors