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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Programatically start/stop Azure PowerBI capacity for PowerBI Embedded

With the new start/stop capacity options on Azure for PowerBI, can I start and stop the capacity from a .net app or powershell?

I understand that I can pause capacity in the Azure Portal, but would like to be able to pause/start capacity using an API call.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi all.

Here is the documentation:
https://docs.microsoft.com/en-us/rest/api/power-bi-embedded/capacities

Here is guide for setting up Postman:
https://www.codit.eu/blog/2017/03/14/authenticate-postman-against-azure-service-management-api/

Wish you well!

Goddamn hate Azure by now though.... hope that changes

View solution in original post

asarraf21
Frequent Visitor
23 REPLIES 23
Anonymous
Not applicable

I agree that the call looks like it is generic, but the description and example point to only SQL Server. Would be nice to get an official response from MS on this matter. We can't afford to have the PowerBI service up and running all the time, but would like to be able to script a 'go to sleep/wake up' task.

Same boat.....There is a world of difference between £7.50/user and £560/month.  I'm pretty sure as it is a standard Azure Portal resource, the standard azure Portal API will apply to it.  In fact, iirc, the portal uses the API in the same way we would anwyay.

Anonymous
Not applicable

There's also this: https://docs.microsoft.com/en-us/rest/api/sql/Databases/Pause, but again, it appears to be just for SQL Server resources.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.