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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
prven
Regular Visitor

Assign Capacity to Workspace

I wanted to assign a PowerBI embedded capacity to an existing Workspace using the API. 

 

  1. Created a PowerBI embedded capacity in Azure and added the service principal as Capacity Administrator
  2. The Groups AssignToCapacity API requires to pass the CapacityId. I have no clue on where to get the CapacityId from.
  3. Checked Azure portal on the created PowerBI embedded capacity and that doesn't have any Id (or atleast not shown in its properties)

 

Can you please guide me on where to get the CapacityId from that can be passes to the AssignToCapacity API?

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @prven,

I'd like to suggest you check the rest API 'get capacity' and 'admin get capacity' if they are suitable for your requirement. (they will list the available capacity that you have permission to access)

Capacities - Get Capacities 

Admin - Get Capacities As Admin 
Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @prven,

I'd like to suggest you check the rest API 'get capacity' and 'admin get capacity' if they are suitable for your requirement. (they will list the available capacity that you have permission to access)

Capacities - Get Capacities 

Admin - Get Capacities As Admin 
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors