cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

API rest Power BI - Assigning a premium capacity to a workspace

I use Azure DevOps to create and automate a Power BI service pipeline.

 

So I am using Powershell and REST APIs and when I create a workspace I would like to assign a Premium capacity to it at the same time but I don't know which API I should use, how to use them?

 

Can you help me ?

 

Thanks in Advance,

 

Cha

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

Please check if the following REST API are what you are searching for...

Admin - Capacities AssignWorkspacesToCapacity

POST https://api.powerbi.com/v1.0/myorg/admin/capacities/AssignWorkspaces

yingyinr_0-1653035115465.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

Please check if the following REST API are what you are searching for...

Admin - Capacities AssignWorkspacesToCapacity

POST https://api.powerbi.com/v1.0/myorg/admin/capacities/AssignWorkspaces

yingyinr_0-1653035115465.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!