Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
I am using the sample from GitHub. We have POwer BI Premium capacity and are using a service principal.
Everytime I run the application, I get "Unauthorized". When I debug it seems that GetPOwerBIClient() is failing with no token credentials. We are in the GCC so I have changed the URLs to pint to GCC instead of commercial.
Thanks
Solved! Go to Solution.
Hi @hmeltonPSL ,
I suggest you to refer to this offical blog to learn more details about App owns data.
Tutorial: Embed Power BI content using a sample embed for your customers' application
You can download the sample file from this link .
You can refer to this offical blog to learn more details about Embed with Service Principal.
Embed Power BI content with service principal and an application secret
Consider using a pre-built white label solution like the Reporting Hub: https://thereportinghub.com. Deploys in minutes and no code required. It allows you to take advantage of Power BI Embedded without the complexity.
I get an access token but it not returned to the var tokencredentials and therefore fails.
Hi @hmeltonPSL ,
I suggest you to refer to this offical blog to learn more details about App owns data.
Tutorial: Embed Power BI content using a sample embed for your customers' application
You can download the sample file from this link .
You can refer to this offical blog to learn more details about Embed with Service Principal.
Embed Power BI content with service principal and an application secret
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |