The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Basically title.
When I fetch https://api.powerbi.com/v1.0/myorg/groups (using an app token with the https://analysis.windows.net/powerbi/api/.default scope) I can see all the workspaces the app has access to. Each workspace has its capacityId on the result.
To resume a fabric capacity, I need to patch to https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provi... (using an app token with the https://management.azure.com//.default scope).
So, how can I link those two results? I mean, how to get the subscriptionId/resourceGroupName/capacityName from the capacityId on the first result?
PS: when I fetch https://api.powerbi.com/v1.0/myorg/capacities (using the same token as the /groups request), the ids of the result does NOT match the ids on the workspaces, so I would guess those are different things?
Hey @MuriloMielke ,
I do not see an easy way to do this but I think that PowerShell will let you do this. I did find this site with a sample powershell script that states it will get the capacity for a workspace.
Common Power BI Admin Scripts Part 1 – Insight Quest (insightsquest.com)
Proud to be a Datanaut!
Private message me for consulting or training needs.
User | Count |
---|---|
37 | |
14 | |
12 | |
12 | |
8 |
User | Count |
---|---|
49 | |
36 | |
24 | |
22 | |
18 |