Forum Discussion

Cilas's avatar
Cilas
Frequent Visitor
1 year ago
Solved

PowerBI Embed token limit

Hi, Good Evening / Morning / Afternoon!


I'm new in Power BI and I'm using the Pro Plus license, embedding my reports in third party application as a service principal. To do it, first I generate the access token with https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/token and then the embed token with https://api.powerbi.com/v1.0/myorg/GenerateToken.


Recently I reached the embed token request limit "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"


This raised some questions:
- Is Power BI Embedded the only way to have unlimited embed tokens?
- Is it possible to have a refresh token with more lifetime than 1 hour? Either through policies or refresh token?
- After reaching the embed token limit, how long does it take for the limit to be lifted again?
- A saw it is possible to add policies to increase the time limit of a token. Does this work for embed tokens? Or only for access tokens?

 

  • Hello Cilas 

     

    Power BI Pro/PPU licenses have embed token limits typically 100 tokens/hour ,for development/testing. For production environments with unlimited tokens, you must purchase Power BI Embedded (A SKUs) or Premium (EM/P SKUs).
    • A1 (starting at ~$700/month) supports ~300 renders/hour.
    • Higher SKUs (A2–A8) scale compute/memory for heavier loads.

     


    2. Token Lifetime & Refresh
    • Embed Token Lifespan: Defaults to 1 hour. This is fixed and cannot be extended via policies.
    • Azure AD Refresh Tokens:
    • Last 90 days for non-single-page apps.
    • Use `setAccessToken()` to auto-refresh tokens before expiration

     

     

    From, adjusting Azure AD token policies affects the access token, not the embed token. The embed token’s 1-hour limit is enforced by Power BI regardless of Azure AD settings. So policies don’t extend embed tokens, only access tokens.

     

     

    if this is helpful please accept the answer

  • No, there is no supported method to extend Power BI embed token expiration beyond 1 hour using Pro/PPU licensing alone

    The A SKU (Power BI Embedded) resolves Pro/PPU limitations by providing dedicated Azure-based capacity for unlimited embed token generation.

    If this resolves the query please accept the answer 

5 Replies

  • Hello Cilas 

     

    Power BI Pro/PPU licenses have embed token limits typically 100 tokens/hour ,for development/testing. For production environments with unlimited tokens, you must purchase Power BI Embedded (A SKUs) or Premium (EM/P SKUs).
    • A1 (starting at ~$700/month) supports ~300 renders/hour.
    • Higher SKUs (A2–A8) scale compute/memory for heavier loads.

     


    2. Token Lifetime & Refresh
    • Embed Token Lifespan: Defaults to 1 hour. This is fixed and cannot be extended via policies.
    • Azure AD Refresh Tokens:
    • Last 90 days for non-single-page apps.
    • Use `setAccessToken()` to auto-refresh tokens before expiration

     

     

    From, adjusting Azure AD token policies affects the access token, not the embed token. The embed token’s 1-hour limit is enforced by Power BI regardless of Azure AD settings. So policies don’t extend embed tokens, only access tokens.

     

     

    if this is helpful please accept the answer

  • Cilas's avatar
    Cilas
    Frequent Visitor

     

    Thank you very much for the clarification!

    Can I use an Azure AD Refresh Token with a 90-day expiration to access the embedded content? Using settings like:

    let embedConfiguration = {
    accessToken: AzureADRefreshToken,
    embedUrl: anEmbedUrl,
    id: reportId,
    pageView: 'fitToWidth',
    tokenType: pbi.models.TokenType.Embed,
    type: 'report'
    };

     

    • nilendraFabric's avatar
      nilendraFabric
      Super User

      No, you cannot directly use an Azure AD Refresh Token in the `accessToken` field for Power BI embedding. Here’s why:

      1. Token Types Are Incompatible
      • Azure AD Refresh Tokens (90-day lifespan) are designed to obtain new access tokens, not to be used directly as embed tokens.
      • Embed Tokens (`TokenType.Embed`) have a fixed 1-hour expiration and require backend regeneration

      • Cilas's avatar
        Cilas
        Frequent Visitor

        Thank you very much for your detailed answers, attention and guidance! So the only way to make 16 embedded visualizations available for four consecutive days, for example, is through the Power BI Embedded subscription? Is there no alternative configuration within the Pro Plus or PPU licensing to extend the access time?