Forum Discussion

HeineSkov's avatar
HeineSkov
Frequent Visitor
7 years ago

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