cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Charline74
Helper II
Helper II

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 @Charline74 ,

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 @Charline74 ,

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
collabdays lisbon

CollabDays Lisbon - 26 November 2022

Sessions include practical, hands-on experience that will help you take the next step in your career and know-how.

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

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.