Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
Solved! Go to Solution.
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
I found the REST api documented here. It seems to be working fine.
Hi,
I'm trying to start/stop Azure Power BI Embedded capacity using the REST API, but it is returning Unauthorized.
When executing the Capacities - Resume API at https://docs.microsoft.com/en-us/rest/api/power-bi-embedded/capacities/resume#code-try-0, it runs successfully, but when I run the same code (see below) in a .NET application it returns an Unauthorized error.
The difference between the application call and the REST API Try It is the access token. If I use the access token generated at the url above in the application, it runs successfully, but if I use the access token that I obtained using the Power BI .NET SDK, then it fails with the Unauthorized error.
Please help, stuck on this problem for a long time.
Thanks,
Ronny
Code:
------
Authorization: Bearer <access_token>
Content-type: application/json
I found the REST api documented here. It seems to be working fine.
Using PowerShell commands (AzureRM.PowerBIEmbedded) and Azure Runbooks we can also automate things if we want
I've published the runbooks workflow at the below link
https://gallery.technet.microsoft.com/scriptcenter/SuspendResumePBI-Embedded-dd630405
Hope this helps,
Jay
Hello guys,
Anyone discover any way to schedule an stop for Power BI Embedded?
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!
Perhaps you can use "Azure Automation runbook" ? to pause/resume your embedded capacities
Will look into that. Thanks
Hi all,
Each new feature or addition we release is being announced in the monthly developer update for Power BI.
Be sure to follow up there for all new additions.
I'm troubled to hear about the pitfalls you are encountering.
To get started, use this documentation and follow the steps described there- https://docs.microsoft.com/en-us/power-bi/developer/embedding
I would be happy to hear more on specific problems you faced and what you think should be the solution.
Thanks,
Hi Nimrod.
If you have the time; these are the potential pitfalls (and I think I stumbled on every single one):
Your link doesn't help much for most ISV users since I'ts in C#. We use MEAN stack for instance
I prefer the API POST/GET method since It Isn't code language dependant.
Problems
Microsoft login (Both Azure and Power BI).
The old login experience took into account that you always want to choose your account type edu/work/personal upon login.
The new MS login is flawed in some ways:
Azure account type
Your tech support did not know the prerequisit for Azure to allow access to resources - SKU or workspaces.
This led to:
Power BI embedded docs
Thanks for the thorough feedback.
It is important for us to hear your problems and suggestions.
While some of the bullets are not related directly to PBI, we will try to pass it forward.
Adding some notes to the last part:
Power BI embedded docs
We have a monthly blog with all updates. See the relevant one- https://powerbi.microsoft.com/en-us/blog/power-bi-embedded-capacity-based-skus-coming-to-azure/
It's still pretty new. Again, you can find it through our monthly blog post. Here is what you are looking for- https://docs.microsoft.com/en-us/rest/api/power-bi-embedded/
We will look into it.
Starting June 2017, PBI Embedded supports all of the data sources that Power BI supports. The API itself can support SQL Azure/On-prem and AS Azure/ On-prem in all relevant connections. See November blog post- https://powerbi.microsoft.com/en-us/blog/power-bi-developer-community-november-update/
Thanks for the feedback, we will look into it
Was the availability of this API to pause/resume capacity announced on the Power BI blog?
It would be great if the team could communicate the addition of these features!
I have had success using these API calls:
POST https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.PowerBIDedicated/capacities/CAPACITY_NAME/resume?api-version=2017-10-01
POST https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.PowerBIDedicated/capacities/CAPACITY_NAME/suspend?api-version=2017-10-01
@ckelbley wrote:
I have had success using these API calls:
POST https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.PowerBIDedicated/capacities/CAPACITY_NAME/resume?api-version=2017-10-01POST https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.PowerBIDedicated/capacities/CAPACITY_NAME/suspend?api-version=2017-10-01
Could you share where you find those APIs, any documentations?
I couldn't find any official documentation. I just did some trial and error using Postman and tried different calls based on how the management APIs work for other resource types and looking at what the browser does when you click the pause/start button in the Azure portal.
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
Awesome. Looks like that was published awhile ago, so don't know why I could not find it. Thanks for the help.
While we're relatively new to PowerBI, I sure find that the pieces do not hang together very well. From an embedded standpoint, the pricing is just stupidly high for low volume scenarios. I have given up attempting to get one of my workspaces associated with a PowerBI instance. 3 people at MS failed to ever explain why, so we gave up.
Hi.
----Pricing suggestion----
Low volume scenarios with pausing the SKUs are cheap? 1$ /hour on a minute basis for A1 core.
Just create many resources for different tiers of users maybe?
* 1 tier A1 for everyday use like maybe marketing and purchasing.
* 1 tier A6 for accounting/strategy/logistics desicions to use at Quarterly critical business moments?
Start/Stop upon Report render in your app.
Depends if you have to start services for 500-100 users at different times and such though..
If you don't need the ability for Crossfiltering, data discovery, edit and save cababilities and seamless Excel 2016/PowerPoint 2016 compatability then yeah Power BI is not the only way: Mongo dB Node.js backend - Angular 5 Frontend - Some java graphs like: https://www.fusioncharts.com/dev/chart-guide/pie-and-doughnut-charts/creating-pie-and-doughnut-chart...
-----My story-----
My struggles with Power BI embedded has also been beyond reasonable 2weeks now.
After 45 mails, 3 calls and 4 Microsoft support contacts I finally got a tech that knew a thing or two about Azure and Power BI Embedded.
Microsoft Sign in - auto created accounts based on outlook accounts, created personal accounts instead of work/edu, Workspace Collections was still visible and available in Azure with documentation being outdated and not showing the new steps to take.
I have incorrectly managed via backdoor Microsoft CLI commands from Powershell create all the old resources but at the end nothing worked since Workspace Collections and Workspaces had been removed and I just received errors.
The next steps to take are scary and I fear will be as troublesome: How does Power BI PRO integrate with the new Embedded SKU solution. Almost all videos "GuyInTheCube" and Microsoft Docs/videos showcase the pre 2017-07-01 ways of embedding Reports.
If I ever get through this hell.. I will defenitely post a complete video on Youtube named "Pitfalls of Azure and Power BI Embedded - a complete Step by Step guide"
Frankly, we've spent more on trying to wire up embedded than we did on creating the functionality and still have no clue that what we have running is maintainable or proper licensing, etc. I've yet to find anyone at MS that really has the full picture on this.
I fear your video may be an extended length version since it focuses on "pitfalls"! PowerBI is not a bad tool but if you can't use it in real-world scenarios, it is not of value.
We're an ISV and would like to use it to replace some dashboards we have done using Google visualizations but keep hitting brickwalls. MS pricing takes the view, it seems, that PowerBI is going to be a monolithic solution. We just want to use it just as part of complex applications we develop and sometimes to quickly put together complex data we have in SQL for easier consumption by data analysts that work at our customer locations. I even get conflicting information from supposed licensing gurus that sell Office 365 as to whether PowerBI is part of E3 licensing or not. MS hurts themselves by making this so frustratingly obtuse and difficult, IMHO.
@Anonymous wrote:
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.
@Anonymous
There might be. The legency documentation is not updated. I'm going to consult this internally and would post back if there comes any update.
I was wondering the same thing, and I found this:
https://docs.microsoft.com/en-us/azure/power-bi-embedded/pause-start
...Which is for databases, but the API implies it is for "pausing compute" which would probably be the same thing as powerbi embedded?
Edit: Wrong link - I meant this: https://docs.microsoft.com/en-us/azure/sql-data-warehouse/sql-data-warehouse-manage-compute-rest-api...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
19 | |
6 | |
3 | |
2 | |
2 |