Forum Discussion
Programatically start/stop Azure PowerBI capacity for PowerBI Embedded
- Anonymous8 years ago
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 - 6 years ago
I found the REST api documented here. It seems to be working fine.
Hello guys,
Anyone discover any way to schedule an stop for Power BI Embedded?
- jimmcslim8 years agoHelper III
wrote:Anyone discover any way to schedule an stop for Power BI Embedded?
This is pretty straightforward... create a Powershell script that you can use within an Azure Automation runbook. This Powershell script should use the latest version of the Azure RM Powershell module that the Power BI team have added pause/resume capacity commands to. Then you schedule the runbook to run at the appropriate time of day/day of week.
It is probably easiest to create two separate runbooks; one for pausing, one for resuming - but you could add parameters to your script/runbook and handle both situations in the one script. Plus you might want to add parameters to indicate which capacity to pause/resume or maybe just hard-code this if appropriate.
It appears that the capacities pause and resume pretty quickly - but that might depend on time of day/region/capacity size, etc. Any insight from the Power BI team here would be great!
- Nikhilkumar62128 years agoRegular Visitor
Perhaps you can use "Azure Automation runbook" ? to pause/resume your embedded capacities
- Anonymous8 years agoNot applicable
Will look into that. Thanks