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

Possible to move others my workspaces to capacity using powerbi rest api

Hi All,

I referred the below article

https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/groups-assign-my-workspace-to-capacity, it
is saying that we can move my workspace to capacity. Here my concern is i can move only my workspace to capacity or others my workspace also.

 

Thanks in advance

 

1 ACCEPTED SOLUTION
npergand
Helper I
Helper I

That specific API will assign only your my workspace to the capacity.

 

You can use this to assign a specific workspace to the capacity: https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/groups-assign-to-capacity

 

There is also an admin API can that can acomplish the same if you are an admin:

I believe this is the one: https://docs.microsoft.com/en-us/rest/api/power-bi/admin/capacities-assign-workspaces-to-capacity

 

The only caveat is that you will need to know the workspace ID.

View solution in original post

3 REPLIES 3
npergand
Helper I
Helper I

That specific API will assign only your my workspace to the capacity.

 

You can use this to assign a specific workspace to the capacity: https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/groups-assign-to-capacity

 

There is also an admin API can that can acomplish the same if you are an admin:

I believe this is the one: https://docs.microsoft.com/en-us/rest/api/power-bi/admin/capacities-assign-workspaces-to-capacity

 

The only caveat is that you will need to know the workspace ID.

In order to run Power BI Rest API,Is it necessary to register application for power BI in azure portal.

Based on the documentation, yes:
https://docs.microsoft.com/en-us/rest/api/power-bi/#scopes

 

Although, I believe you can call them yourself using the "Try it" from the docs or powershell.

Different API's also may require different scopes or permissions.
Those are listed at the top of each API doc page.

 

This is a good walk through from Guy in a Cube: https://www.youtube.com/watch?v=fXbJeIY2CgE

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors