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
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors