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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

.NET SDK vs. Powershell vs. REST APIs for automation

Dear Community,

 

I am trying to automate these workflow from our back-end:

 

1) Create a workspace and assign the right users to it

2) Upload a .pbix file from a local location to Power BI server in the workspace that is created in the previous step (pro account is available) 

3) Feed the .pbix file with new data and refresh the report(s) / dashboard(s)

4) Publsih the report(s)/dashboard(s) as an app and get the link

5) Share the app link with my users (who can have access to the app)

 

I started looking at Rest APIs. The rest APIs does not support uploading from a local location :S

I switched to Powershell. Powershell can do steps 1, 2 and probably 3. But not the 4th (publishing as an app)

 

I am thinking now to write the whole thing in C#??!! Would that make sense? I cannot find a proper documentation on .NET SDK for Power BI. Would the above steps compeletely covered in .NET SDK? 

 

Any comment and idea is highly welcome, as I'm still confused.

 

Thanks a lot. 

0 REPLIES 0

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.