1. First on the result, no nonsense
2. prerequisites
- Visual Studio 2017, VS2019 version conflict occurs
- FQ, you know, need to connect api.powerbi.com
- Pbix file
- Power BI Pro account, there are now 60 days free
Step 1 - Set up your Power BI embedding environment
https://app.powerbi.com/embedsetup
Step 2 - Sign in
Step 3 Register your application
The name of your application, you need to access something? Anyway, I chose ALL
Step 4 Create a workspace
Set the name workspace, just take a. If the previous step is successful, appears on the right Application ID.
Step 5 Import Content
Import your report. Previous successful, you can see Workspace ID right.
Step 6 Grant Permissions
Will appear after a bunch of points list, ignore it, accept the point .. successful, there will be some message.
Step 7 Download sample app
After Download, build finished on the run.
But in fact is not running, Microsoft's code is also a little pits.
- Set account password
- Configuration ApplicationID
Well, build success, the website also opened, but how is not out ??
One last question, turn QQQ. Because api.powerbi are abroad, you know.
Finally, attach the address of my Gitee, ask someone to help me Star, there is a problem I would.
https://gitee.com/zero530/PowerBIEmbedded
Thank you thank you!