Problem:
Power BI report embedding fail and showing "content not available".
Process Followed
- Create Azure Directory app as per standard process
- Allow user to authenticate from Azure ad authentication and get token
- Power BI workspace created / report as well
- Get Report Id from Power BI and embed into code
- User accessToken got from Azure Ad authentication successful login
Suggestions Needed
I am not sure mapping needed for User, directory and power BI reports. but user for login is already available in active directory + workspace of power bi as well.
It will be great help if one by one process given for exact mapping and access management if required.
const config = {
type: 'report',
accessToken,
embedUrl,
id: embedReportId,
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};
var report = powerbi.embed(reportContainer, config);
