Forum Discussion
prven
5 years agoRegular Visitor
Assign Capacity to Workspace
I wanted to assign a PowerBI embedded capacity to an existing Workspace using the API.
- Created a PowerBI embedded capacity in Azure and added the service principal as Capacity Administrator
- The Groups AssignToCapacity API requires to pass the CapacityId. I have no clue on where to get the CapacityId from.
- 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!
- Anonymous5 years ago
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)
Admin - Get Capacities As Admin
Regards,Xiaoxin Sheng
1 Reply
- AnonymousNot 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)
Admin - Get Capacities As Admin
Regards,Xiaoxin Sheng