Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors