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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
MuriloMielke
New Member

Using the API, how to find out which fabric capacity is a workspace part of? so I can resume it

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?

 

 

1 REPLY 1
collinq
Super User
Super User

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)

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.