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
pgromski
Frequent Visitor

App owns data Sample - Azure Problem

Hi everyone.

 

I try to get sample report in App owns data Sample. I think i did everything with instruction.

1. I have PowerBI Pro user

2. Created workspace with sample report in app.powerbi.com

3. I connected PowerBI Embedded space with this group (diamond next to the name workspace)

4. I registered app on dev.powerbi.com/apps as Native Apps and got clientID - I gave permissions in Azure

5. When i started project in my local machine report works very nice

localhostlocalhost

6. Next i publish sample project to App Service in Azure. Home page works ok, but when I go to sample reports (Home/EmbedReport) I get error which I don't have idea what should I do. 

ErrorError

Meybe somebody has any idea what  should I check ?

1 ACCEPTED SOLUTION
pgromski
Frequent Visitor

Solution:

You need to add key from Cloud.config to Web.config. Easiest Copy-> Past.

View solution in original post

3 REPLIES 3
peekay
New Member

Just wanted to add the solution that worked. I added the following in my web.config and republished my app. After that, i restarted my app and it worked. Happy!

 

Add this code below to web.config (code comes from cloud.config ....\PowerBI-Developer-Samples\PowerBI-Developer-Samples-master\App Owns Data\PowerBIEmbedded_AppOwnsData\CloudConfigs\Power BI Global:)

 

<appSettings>
<add key="authorityUrl" value="https://login.windows.net/common/oauth2/authorize/" />
<add key="resourceUrl" value="https://analysis.windows.net/powerbi/api" />
<add key="apiUrl" value="https://api.powerbi.com/" />
<add key="embedUrlBase" value="https://app.powerbi.com/" />
</appSettings>

pgromski
Frequent Visitor

Solution:

You need to add key from Cloud.config to Web.config. Easiest Copy-> Past.

Just wanted to add the solution that worked. I added the following in my web.config and republished my app. After that, i restarted my app and it worked. Happy!

 

Add this code below to web.config (code comes from cloud.config ....\PowerBI-Developer-Samples\PowerBI-Developer-Samples-master\App Owns Data\PowerBIEmbedded_AppOwnsData\CloudConfigs\Power BI Global:)

 

<appSettings>
<add key="authorityUrl" value="https://login.windows.net/common/oauth2/authorize/" />
<add key="resourceUrl" value="https://analysis.windows.net/powerbi/api" />
<add key="apiUrl" value="https://api.powerbi.com/" />
<add key="embedUrlBase" value="https://app.powerbi.com/" />
</appSettings>

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.