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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
vivek_jain
Advocate II
Advocate II

Queries related to automating power bi Reports publishing

Need help for below queries :

  • We are writing a utility in PowerShell to automate importing of reports and then updating the dataset schedule refresh - Data source credentials to the respective azure sql data source credentials.Import Api has been developed and is working fine with publishing the reports. Now , we are stuck with finding an appropriate PowerBI REST Api by which we can update the dataset - schedule refresh - Data source credentials for the dataset of the report which was published by first step.I tried below api, but seems this works only for Direct Query. In our case , we are not using direct query , instead we are using schedule refresh- import option. Set All Connections REST Api:

         https://msdn.microsoft.com/en-US/library/mt748181.aspx

         Below first screen shot shows the error I get when I try to call via postman client.

         Can you please provide any suggestions/api with steps by which we can achieve this if in case it is possible?

  • We observed that from app.powerbi.com, I am not able to update server details in the dataset options- dataset schedule refresh - Data source credentials . (See second screenshot below). Is this a limitation from power bi or can you guide me how to get this access to change server details from powerbi portal ?Screenshot1.pngScreenshot2.png.jpg
2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @vivek_jain,

 

The Set All Connections operation API only supports DirectQuery datasets. And changing data source(i.e. server name or database name) for a dataset directly on Power BI service is not supported currently. So I would suggest you submit your requirements on Power BI Ideas forum to improve Power BI on this feature. Smiley Happy

 

Regards

Thanks @v-ljerr-msft , so do you mean that PowerBI Desktop is the only option for publishing reports with correct dataset datasource credentails ? Any future roadmap that you are aware about where we can have such api capability in future powerbi versions ?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.