<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power BI Embedded and Angular for webpage in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/251036#M7773</link>
    <description>&lt;P&gt;Thanks for this example &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6971" data-lia-user-login="Eric_Zhang" class="lia-mention lia-mention-user"&gt;Eric_Zhang&lt;/a&gt;. I am doing an analysis task for my company and I have a question that you can hopefully answer. Will the URL that is injected into the iFrame be authenticated?&amp;nbsp; Our Use-Case is to have our reports available on the internet to users that have been authenticated within our web application. We do not want to expose the embedded URL in the iFrame to a crafty user who can retrieve the URL and then release it to the public without requiring authentication.&amp;nbsp; I'm hoping Power BI Embed has authentication built around the URL it is exposing in the iFrame.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 17:37:34 GMT</pubDate>
    <dc:creator>PowerBINoob123</dc:creator>
    <dc:date>2017-09-13T17:37:34Z</dc:date>
    <item>
      <title>Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/148521#M5064</link>
      <description>&lt;P&gt;Hello Community&lt;/P&gt;&lt;P&gt;So far I have been able to import my power BI report on Azure Workspace. Embedding the Embbdedd workspace report to a webpage however I am having trouble with. (I'm disappointed Microsoft does not have a simple way to do this).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am essentially trying to implement this:&amp;nbsp; &lt;A href="http://azure-samples.github.io/powerbi-angular-client/#/scenario1" target="_blank"&gt;http://azure-samples.github.io/powerbi-angular-client/#/scenario1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;by referencing this forum:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Angular-2-and-Power-BI-Embedded/m-p/144090#M4945" target="_self"&gt;http://community.powerbi.com/t5/Developer/Angular-2-and-Power-BI-Embedded/m-p/144090#M4945&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Can someone explain to me:&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Being new to HTML, what should I do with HTML and JS? Do I just create overall HTML file and combine them?&lt;/LI&gt;&lt;LI&gt;Is the website ran through the VS solution, or can I just use equivalent code, with my own credentials to make it run?&lt;/LI&gt;&lt;LI&gt;Is there an easier solution?(Seriously, Why do I have to go through downloading and installing packages just to embed something).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping someone in this community can enliehgthen me with a sucessful solution. &lt;U&gt;A code sample would be great.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:30:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/148521#M5064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/149079#M5077</link>
      <description>&lt;P&gt;Anyone???&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 15:27:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/149079#M5077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-26T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/151306#M5125</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;A very simple demo for Power BI Embedded can be using a HTML, if you've already got a valid token and embeded URL. You can open the HTML in IE or Chrome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to how to get the embedded url and token, you can check &lt;A href="https://github.com/Azure-Samples/power-bi-embedded-integrate-report-into-web-app" target="_self"&gt;this demo in github&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; &amp;lt;html&amp;gt;
 
  &amp;lt;script type="text/javascript"&amp;gt;
        window.onload = function () {
		 
            // client side click to embed a selected report.
              
            // handle server side post backs, optimize for reload scenarios
            // show embedded report if all fields were filled in.
            var accessTokenElement = document.getElementById('MainContent_accessTokenTextbox');
			 
            if(null !== accessTokenElement){
                var accessToken = accessTokenElement.value;
				 
                if ("" !== accessToken)
                    updateEmbedReport();
            }
        };

        // The embedded report posts message for errors to parent window.  listen and handle as appropriate
        function receiveMessage(event)
        {
            if (event.data) {
                try {
                    messageData = JSON.parse(event.data);
                    if (messageData.event === "reportPageLoaded")
                    {
                    }
                }
                catch (e) {
                    // do something smart
                }
            }
        }

        var valB = false;

        // update embed report
        function updateEmbedReport() {

            // check if the embed url was selected
            //var embedUrl = document.getElementById('tb_EmbedURL').value;
			var embedUrl="&lt;FONT size="6"&gt;&lt;STRONG&gt;https://embedded.powerbi.com/appTokenReportEmbed?reportId=9xxxxx9c18&lt;/STRONG&gt;&lt;/FONT&gt;"
            if ("" === embedUrl)
                return;

            // to load a report do the following:
            // 1: set the url
            // 2: add a onload handler to submit the auth token
            iframe = document.getElementById('iFrameEmbedReport');
            iframe.src=embedUrl;
            iframe.onload = postActionLoadReport;
        }

        
        // post the auth token to the iFrame. 
        function postActionLoadReport() {

            // get the access token.
            accessToken = document.getElementById('MainContent_accessTokenTextbox').value;

            // return if no a
            if ("" === accessToken)
                return;

            // construct the push message structure
            // this structure also supports setting the reportId, groupId, height, and width.
            // when using a report in a group, you must provide the groupId on the iFrame SRC
            var m = {
                action: "loadReport", accessToken: accessToken
                //oDataFilter: "Table/id eq 'B'",
                //filterPaneEnabled: "false"
            };
            //var m = { action: "loadReport", accessToken: accessToken };
            
            message = JSON.stringify(m);

             
            // push the message.
            iframe = document.getElementById('iFrameEmbedReport');
            iframe.contentWindow.postMessage(message, "*");;
             
        }

    &amp;lt;/script&amp;gt;
&lt;STRONG&gt; 
  &amp;lt;input id="MainContent_accessTokenTextbox" type="hidden"&lt;FONT size="6"&gt; value="replace a valid token here"&lt;/FONT&gt;&amp;gt;&lt;/STRONG&gt;
  &amp;lt;iframe id="iFrameEmbedReport" src="" height="768px" width="1024px" frameborder="1" seamless&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 10:00:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/151306#M5125</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-03-30T10:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/152223#M5146</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Power BI Embedded&lt;/STRONG&gt; can be used in a lot of scenarios ranging from &lt;STRONG&gt;Asp.net MVC 5&lt;/STRONG&gt;, which you may&lt;BR /&gt;build on &lt;STRONG&gt;Visual Studio 2015&lt;/STRONG&gt; as explained here:&lt;BR /&gt;&lt;A href="http://www.mostafaelzoghbi.com/2016/04/power-bi-embedded-step-by-step.html" target="_blank"&gt;http://www.mostafaelzoghbi.com/2016/04/power-bi-embedded-step-by-step.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;to &lt;STRONG&gt;JavaScript API&lt;/STRONG&gt; as concisely explained on&amp;nbsp;Jon Gallant blog&lt;BR /&gt;&lt;A href="http://blog.jongallant.com/2017/01/powerbi-embedded-javascript-api-range-slider-filter/" target="_blank"&gt;http://blog.jongallant.com/2017/01/powerbi-embedded-javascript-api-range-slider-filter/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and simple HTML embedding sample as provided below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you say you understand how to create Power BI Azure Collections on Azure portal and managed to import my power BI&lt;BR /&gt;report on Azure Workspace, then you're on a good path.&lt;/P&gt;&lt;P&gt;Still... before going any further, it's important to adopt a solution which you'll feel mostly comfortable with and therefore also that best fits your needs.&lt;BR /&gt;It's not just a matter of saying "Hey I've seen someone used Angular approach, maybe I should do the same" kind of thing...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now based on your comments, it's essential to first make a clear distinction here.&lt;/P&gt;&lt;P&gt;The first link&lt;BR /&gt;&amp;nbsp; &lt;A href="http://azure-samples.github.io/powerbi-angular-client/#/scenario1" target="_blank"&gt;http://azure-samples.github.io/powerbi-angular-client/#/scenario1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;is a sample which was built using an AngularJS 1.x approach. If you want to take a look, the code is available on Github &lt;A href="https://github.com/Azure-Samples/powerbi-angular-client" target="_blank"&gt;https://github.com/Azure-Samples/powerbi-angular-client&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now the second link&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;A href="http://community.powerbi.com/t5/Developer/Angular-2-and-Power-BI-Embedded/m-p/144090#M4945" target="_blank"&gt;http://community.powerbi.com/t5/Developer/Angular-2-and-Power-BI-Embedded/m-p/144090#M4945&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;focuses mainly on a suggestion the author of a thread proposed as a solved solution using with Angular 2+ TypeScript -&lt;BR /&gt;which is somehow a bit different than the first Angular 1.x approach.&lt;/P&gt;&lt;P&gt;I've tried a pretty similar approach with few addins in Angular 2 CLI and can confirm the solved answer worked in my case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So basically, the 2-7 steps listed in the tread mainly explains the stepped procedures the author took to manage Power BI Embedded workspace collections, &amp;nbsp;using the powerbi-cli interface tools. You can find more details on&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-Cli" target="_blank"&gt;https://github.com/Microsoft/PowerBI-Cli&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So in an Angular 2 + TypeScript scenario, you could either create a new Angular 2 CLI application on Visual Studio Code&lt;BR /&gt;or use an existing one.&lt;/P&gt;&lt;P&gt;You would then also need to make sure to install the two following libraries [node.js package manager in this case...]&lt;BR /&gt;&lt;BR /&gt;1 - install the &lt;STRONG&gt;powerbi-cli&lt;/STRONG&gt; interface you'll use to manage the Power BI Embedded workspace collections step procedures...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; npm install --save powerbi-cli &lt;/PRE&gt;&lt;P&gt;2- install the&amp;nbsp;&lt;STRONG&gt;powerbi-client&lt;/STRONG&gt; library in your project&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;npm install --save powerbi-client &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your Angular 2 CLI application you could for example create a &lt;STRONG&gt;pbireport&lt;/STRONG&gt; component in which you would host and manage infos you need to inject in the iFrame hosting your .pbix report&lt;/P&gt;&lt;PRE&gt;ng g component pbireport&lt;/PRE&gt;&lt;P&gt;which would scaffold similar following &amp;nbsp;files&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;then in &lt;STRONG&gt;pbireport.component.ts&lt;/STRONG&gt;&amp;nbsp; - TypeScript file, based on provided thread solved solution - you could use a similar code to define all configuration paremeters you would inject&amp;nbsp;into your iFrame container...&lt;/P&gt;&lt;PRE&gt;import { Component, OnInit } from '@angular/core';

import * as pbi from 'powerbi-client';

@Component({
  selector: 'app-pbireport',
  templateUrl: './pbireport.component.html',
  styleUrls: ['./pbireport.component.css']
})&lt;BR /&gt;
export class PbireportComponent implements OnInit {

  constructor() { }

  ngOnInit() {
    this.showReport()
  }

  showReport() {
    // Report's Secured Token
    let accessToken = '&amp;lt;&lt;EM&gt;Your Access Token Key1&lt;/EM&gt;&amp;gt;  ';

    // Embed URL
    let embedUrl = 'https://embedded.powerbi.com/appTokenReportEmbed?reportId=&amp;lt;&lt;EM&gt;Your embedReportID&lt;/EM&gt;&amp;gt;';

    // Report ID
    let embedReportId = &amp;lt;&lt;EM&gt;Your embedReportID&lt;/EM&gt;&amp;gt;';

    // Define a Configuration used to describe the what and how to embed.
    // This object is used when calling powerbi.embed.
    // This also includes settings and options such as filters.
    
    let config = {
      type: 'report',
      accessToken: accessToken,
      embedUrl: embedUrl,
      id: embedReportId,
      settings: {
        filterPaneEnabled: true,
        navContentPaneEnabled: true
      }
    };

    // Grab the reference to the div HTML element that will host the report.
    let reportContainer = &amp;lt;HTMLElement&amp;gt;document.getElementById('reportContainer');

    // Embed the report and display it within the div container.
    let powerbi = new pbi.service.Service(pbi.factories.hpmFactory, pbi.factories.wpmpFactory, pbi.factories.routerFactory);
    let report = powerbi.embed(reportContainer, config);

    // Report.off removes a given event handler if it exists.
    report.off("loaded");

    // Report.on will add an event handler which prints to Log window.
    report.on("loaded", function () {
      console.log("Loaded");
    });
  }
}&lt;/PRE&gt;&lt;P&gt;then in &lt;STRONG&gt;pbireport.component.html&lt;/STRONG&gt;, - html file, you could simply define a &lt;STRONG&gt;div&lt;/STRONG&gt;&amp;nbsp;id="reportContainer" section which will host your &lt;STRONG&gt;iFrame&lt;/STRONG&gt;.&lt;/P&gt;&lt;PRE&gt;&amp;lt;!-- Main content--&amp;gt;
&amp;lt;section class="content"&amp;gt;
  &amp;lt;div class="container-fluid"&amp;gt;
    &amp;lt;div class="row"&amp;gt;
      &amp;lt;div id="reportContainer" class="col-xs-12" &amp;gt;&amp;lt;/div&amp;gt; &amp;lt;-----
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/section&amp;gt;&lt;/PRE&gt;&lt;P&gt;you could then add the component in a main &lt;STRONG&gt;app.component.html&lt;/STRONG&gt; in a similar fashion&lt;/P&gt;&lt;PRE&gt;&amp;lt;!-- Wrapper--&amp;gt;
 &amp;lt;div class="wrapper"&amp;gt;
   &amp;lt;app-header&amp;gt;&amp;lt;/app-header&amp;gt;
   &amp;lt;app-navigation&amp;gt;&amp;lt;/app-navigation&amp;gt;
   &amp;lt;app-pbireport&amp;gt;&amp;lt;/app-pbireport&amp;gt; &amp;lt;------ 
 &amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Finally&amp;nbsp;when running the app - if everything works as expected - you woud end up with similar rendered result &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thereare obviously more options to explore&amp;nbsp;in Angular 2 scenario , but basically this should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:22:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/152223#M5146</guid>
      <dc:creator>MawashiKid</dc:creator>
      <dc:date>2017-03-31T19:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/152231#M5148</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6971" data-lia-user-login="Eric_Zhang" class="lia-mention lia-mention-user"&gt;Eric_Zhang&lt;/a&gt;, I have retrieved my Embed URL and AccessToken. Once I insert the following credenials t the HTML file as you showed. I get the result:&amp;nbsp; "This content isn't available."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I address this?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-bdiouf&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/152231#M5148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-31T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/152238#M5150</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="5730" data-lia-user-login="MawashiKid" class="lia-mention lia-mention-user"&gt;MawashiKid&lt;/a&gt;, Thanks for the information I will into this as well! This clarified a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;bdiouf&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 20:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/152238#M5150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-31T20:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/251036#M7773</link>
      <description>&lt;P&gt;Thanks for this example &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6971" data-lia-user-login="Eric_Zhang" class="lia-mention lia-mention-user"&gt;Eric_Zhang&lt;/a&gt;. I am doing an analysis task for my company and I have a question that you can hopefully answer. Will the URL that is injected into the iFrame be authenticated?&amp;nbsp; Our Use-Case is to have our reports available on the internet to users that have been authenticated within our web application. We do not want to expose the embedded URL in the iFrame to a crafty user who can retrieve the URL and then release it to the public without requiring authentication.&amp;nbsp; I'm hoping Power BI Embed has authentication built around the URL it is exposing in the iFrame.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 17:37:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/251036#M7773</guid>
      <dc:creator>PowerBINoob123</dc:creator>
      <dc:date>2017-09-13T17:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/251093#M7775</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;RE: I am doing an analysis task for my company ...&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Note if you're at the analysis stage and haven't engaged into any concrete or existing Power BI Embedded project production yet, then I&amp;nbsp;wouldn't invest much in the former &lt;STRONG&gt;Power BI Embedded&lt;/STRONG&gt; approach if I were you...&lt;BR /&gt;Reason is the &lt;STRONG&gt;Power BI Embedded&lt;/STRONG&gt; approach using &lt;STRONG&gt;Workspace Collections - Workspace &lt;/STRONG&gt;topology has been listed as &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;deprecated&lt;/FONT&gt; &lt;/STRONG&gt;since June 2017 and is no longer available on &lt;STRONG&gt;Azure Portal.&lt;/STRONG&gt; So it would be just as investing in moving all your new furnitures into an old condemned building which will be probably be completetely shaved from the map with bulldozers in few months as countdown&amp;nbsp;has already&amp;nbsp;started.&lt;/P&gt;&lt;P&gt;So that being said, if I were you I would rather concentrate my analysis on&amp;nbsp;the &lt;STRONG&gt;REST API&lt;/STRONG&gt; approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you understand the main logic behind the &lt;STRONG&gt;Power BI Client&lt;/STRONG&gt; object, then you should be able to refactor the Angular code I provided above without reinventing the wheel. The main difference now is how and where you will provision your report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following links give an overview how to deal with new &lt;STRONG&gt;Power BI REST API&lt;/STRONG&gt; approach.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Integrate Power BI into Your Application: Part 1 – Register your App&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="http://radacad.com/integrate-power-bi-into-your-application-part-1-register-your-app" target="_blank"&gt;http://radacad.com/integrate-power-bi-into-your-application-part-1-register-your-app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Integrate Power BI into Your Application: Part 2 – Authenticate&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;A href="http://radacad.com/integrate-power-bi-into-your-application-part-2-authenticate" target="_blank"&gt;http://radacad.com/integrate-power-bi-into-your-application-part-2-authenticate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Integrate Power BI into Your Application: Part 3 – Embed Content&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;A href="http://radacad.com/integrate-power-bi-into-your-application-part-3-embed-content" target="_blank"&gt;http://radacad.com/integrate-power-bi-into-your-application-part-3-embed-content&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/251093#M7775</guid>
      <dc:creator>MawashiKid</dc:creator>
      <dc:date>2017-09-13T19:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/277171#M8312</link>
      <description>&lt;P&gt;Hello bdiouf,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you been able to resolve this?&lt;/P&gt;&lt;P&gt;I created the Embed Token using the below command:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;powerbi create-embed-token -c &amp;lt;collection&amp;gt; -k &amp;lt;accessKey&amp;gt; -w &amp;lt;workspaceId&amp;gt; -d &amp;lt;datasetId&amp;gt; -u [username] --roles [roles1,roles2,...] -s [scope1 scope2 ...] -e &amp;lt;expiration&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have passed this token as the Access Token and an Embed Url but I see the same "This content isnt available". Please suggest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tech123&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 16:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/277171#M8312</guid>
      <dc:creator>Tech123</dc:creator>
      <dc:date>2017-10-12T16:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded and Angular for webpage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/460746#M14183</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="44266" data-lia-user-login="Tech123" class="lia-mention lia-mention-user"&gt;Tech123&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;Hi Guys have you found a solution on how to embed the report? mine also says "&lt;SPAN&gt;This content isn't available".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6971" data-lia-user-login="Eric_Zhang" class="lia-mention lia-mention-user"&gt;Eric_Zhang&lt;/a&gt;&amp;nbsp;is your way still applicable to date? i need simple embedding like this i dont have to create a whole project just to show the report. I need to put it in a single page and that page load to an iframe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;BR /&gt;JP&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 08:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-and-Angular-for-webpage/m-p/460746#M14183</guid>
      <dc:creator>mijerg11</dc:creator>
      <dc:date>2018-07-12T08:52:53Z</dc:date>
    </item>
  </channel>
</rss>

