Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HeineSkov
New Member

Embedding report fails after publishing app to Azure

I'm using the Power BI Javascript library to embed reports in an Angular application. Everything works perfectly when I'm running on localhost. After I publish to an Azure App Service, all the reports fail with the error

 

"message":"LoadReportFailed","detailedMessage":"Get report failed","errorCode":"403"
The configuration for the embed function call

type: 'report',
id: this.reportId,
embedUrl: embedConfig.EmbedUrl,
pageView: "fitToWidth",
accessToken: embedConfig.EmbedToken.token,
tokenType: pbi.models.TokenType.Embed,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: true
}
};

 

Anything I'm missing in Azure? I don't understand why it's working when running on localhost but not in Azure

1 REPLY 1
HeineSkov
New Member

I also get this 403 error in the log when trying to embed a report

 

reportEmbed?reportId=---e&groupId=---c&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly9XQUJJLUVVUk9QRS1OT1JUSC1CLXJlZGlyZWN0LmFuYWx5c2lzLndpbmRvd3MubmV0In0%3d&isMobile=true&uid=jerr9i:530 GET https://wabi-europe-north-b-redirect.analysis.windows.net/explore/reports/---/modelsAndExploration?p... 403

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.