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
yingyinr
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
yingyinr
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
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.