Forum Discussion
Embed for your customers can not get emmbed token sometimes later
- 3 years ago
Hi simonlxd ,
AAD token does have expiration (default is 1h). Do you renew it before calling the Power BI API?
What is the error you're getting when the request to generate an embed token fails? Did you check if the response body contains information regarding the reason of the failure?
Hi AmosHersch
Thanks for your response. Based on your idea, I checked it again. I found that trial AAD token generate is limited.
https://learn.microsoft.com/en-us/power-bi/developer/embedded/move-to-production
it says: "The number of embed trial tokens a Power BI service principal or master user (master account) can generate is limited." BTW, if i always create new service principal to generate embed token when it limited, is that work? 😂
- AmosHersch3 years ago
Microsoft Employee
I don't know if the limit of free tokens is per user or per tenant.
AFAIU customers are expected to use trial tokens when testing their embedded solution, and later when moving to production purchase dedicated capacity so they will get unlimited number of tokens.