---
title: "PowerBi - you have exceeded the amount of embed token that can be generated on a shared or proplus capacity. you need to purchase azure capacities to generate embed tokens."
canonical: "https://servicedesk.maxgeo.com/space/DS/1403584516/PowerBi%20-%20you%20have%20exceeded%20the%20amount%20of%20embed%20token%20that%20can%20be%20generated%20on%20a%20shared%20or%20proplus%20capacity.%20you%20need%20to%20purchase%20azure%20capacities%20to%20generate%20embed%20tokens."
format: markdown
---
|  |  |  |  |
| --- | --- | --- | --- |
| Application: | DataShed | Related Build Number: | 2.3.3 and above |
| Status: | [Known Issue] |  |  |

---

## **Issue:**

Error when trying to display Power Bi in DataShed5

![image-20240912-025806.png](media://7b5e9543-9a0d-4cdb-ad82-e1387543c2be)

```
{"error":{"code":"InvalidRequest","message":"You have exceeded the amount of embed token that can be generated on a shared or ProPlus capacity. You need to purchase Azure capacities to generate embed tokens. See https://go.microsoft.com/fwlink/?linkid=868976"}}
```

## **Cause:**

All tokens have been used up for the PowerBi Premum Per User license

## **Resolution: ** 

Create a new Service Principal, Assing the Service Principal to each power bi workspace and update Service Principal detail in DataShed5 Admin

### Create a Service Principal

Please follow the below link

[https://maxgeo.atlassian.net/wiki/spaces/DS/pages/1358856215/PowerBi+installation+and+IT+Configuration#Service-Principal-Setup](https://maxgeo.atlassian.net/wiki/spaces/DS/pages/1358856215/PowerBi+installation+and+IT+Configuration#Service-Principal-Setup) 

### Assing the Service Principal to Workspace

Log into Power Bi useing the account with the Premium Pre User license or an account with admin access to the same workspace. [https://app.powerbi.com/](https://app.powerbi.com/) 

Select the workspace then “Manage access”

![image-20240912-030736.png](media://95daa5c9-1137-4ece-bb28-4654bbe7cd32)

Select “+ Add people or groups”

![image-20240912-030847.png](media://d7b61bd0-49f0-40a2-852d-cc48db51b536)

Serach and Add for the recently created Service Principal and assign it the “Member” Role


![image-20240912-031038.png](media://b73e9781-5946-4140-b6b4-33db32b3f6f1)

### Update Service Principal detail in DataShed5 Admin

*You will require the SuperUser role assign to perform the below tasks*

Log into the DataShed5 Admin portal

Select “Configuration”

![image-20240912-031325.png](media://c376b81d-70ec-45d0-920e-631f3f3b4950)

Locate and update the below fields with detail from the created Service Principal

| **Group** | Configuration |
| --- | --- |
| PowerBi Report Details | applicationId |
| PowerBi Report Details | applicationSecret |

Once the all of the above has been completed you should be able to view the reports again in DataShed5. You may also need to clear the browser cache.

[https://maxgeo.atlassian.net/wiki/spaces/LGL/pages/1274576897](https://maxgeo.atlassian.net/wiki/spaces/LGL/pages/1274576897) 

[https://maxgeo.atlassian.net/wiki/spaces/LGL/pages/1274380313](https://maxgeo.atlassian.net/wiki/spaces/LGL/pages/1274380313) 

[https://maxgeo.atlassian.net/wiki/spaces/LGL/pages/1274511367](https://maxgeo.atlassian.net/wiki/spaces/LGL/pages/1274511367)