Maintained with ☕️ by
IcePanel logo

Power BI Embedded capacity APIs

Share

Services

## In Power BI Embedded, added automation APIs support [assigning a workspace to an Azure capacity](https://msdn.microsoft.com/en-us/library/mt829293.aspx). Currently, through the Power BI portal, a workspace administrator with capacity assignment permissions can access **Edit workspace** and choose a capacity to assign to a workspace. The new **Assign to Capacity** API replicates this behaviour. The API can be used to assign the workspace, unassign it or move between capacities. We also added the [Get Capacities](https://msdn.microsoft.com/en-us/library/mt829294.aspx) API to get a list of all the capacities the user has access to (as capacity administrator and/or assignment permissions). An additional property that states the capacity where a workspace resides is available in the existing [Get Groups](https://msdn.microsoft.com/en-us/library/mt243842.aspx) API. With these API additions to manage workspaces in capacities, we completed the automation story to onboard new customers, using a workspace for each customer. Here are the main steps to automate the process: 1. [Clone the workspace](https://powerbi.microsoft.com/en-us/blog/duplicate-workspaces-using-the-power-bi-rest-apis-a-step-by-step-tutorial/) with the analytical content for a new customer. 2. [Connect the cloned content](https://msdn.microsoft.com/en-us/library/mt814715.aspx) to the customer’s data source. 3. Get the customer into production by assigning the cloned workspace to a dedicated capacity. * Power BI Embedded * Features * [ Power BI Embedded](https://azure.microsoft.com/en-gb/products/power-bi-embedded/)