{"id":712,"date":"2020-08-31T08:25:12","date_gmt":"2020-08-31T06:25:12","guid":{"rendered":"http:\/\/www.flip-design.de\/?p=712"},"modified":"2020-08-31T08:33:01","modified_gmt":"2020-08-31T06:33:01","slug":"generate-power-bi-embed-token","status":"publish","type":"post","link":"https:\/\/www.flip-design.de\/?p=712","title":{"rendered":"Generate a Power BI Embed Token"},"content":{"rendered":"\n<p>Last Saturday a friend of mine called me and he asked, how can\ngenerate a Power BI Embed Token. He want to test the embedding on the Power BI Playground\n(<a href=\"https:\/\/microsoft.github.io\/PowerBI-JavaScript\/demo\/v2-demo\/index.html\">https:\/\/microsoft.github.io\/PowerBI-JavaScript\/demo\/v2-demo\/index.html<\/a>).<\/p>\n\n\n\n<p>I said, that\u2019s easy. Follow the instructions of \u201cGuy in a Cube\u201d\n\u2013 he explained that on a YouTube Video: <a href=\"https:\/\/www.youtube.com\/watch?v=4KuyPNtVijo&amp;t=319s\">https:\/\/www.youtube.com\/watch?v=4KuyPNtVijo&amp;t=319s<\/a><\/p>\n\n\n\n<p>After 30 minutes he called me again, he struggled on the\nPower Shell execution \u2026<\/p>\n\n\n\n<p>Okay, long story short. To run the script successfully, you must do this steps:<\/p>\n\n\n\n<ol><li>Run the PowerShell ISE as an Admin<\/li><li>Execute following script to install the Power BI\nCmdlet:<br>\nInstall-Module -Name PowerBIPS <\/li><li>Edit the URL from the PowerShell Script sample<\/li><\/ol>\n\n\n\n<p> 1. Navigate to your report on PowerBI.com<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"405\" height=\"129\" src=\"http:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik.png\" alt=\"\" class=\"wp-image-713\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik.png 405w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-300x96.png 300w\" sizes=\"(max-width: 405px) 100vw, 405px\" \/><\/figure>\n\n\n\n<p>1: Your workspace ID<\/p>\n\n\n\n<p>2: Your Report ID<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Go to your PowerShell Script, In the video it seems so easy, only replace the workspace id \u2026 it\u2019s not ;-) Edit the URL<br> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"605\" height=\"70\" src=\"http:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-1.png\" alt=\"\" class=\"wp-image-714\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-1.png 605w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-1-300x35.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-1-500x58.png 500w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<ul><li>Don\u2019t use the URL from the Playground, use the one from the PowerShell Script. Replace the workspace and the report ID. <br><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"605\" height=\"410\" src=\"http:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-2.png\" alt=\"\" class=\"wp-image-715\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-2.png 605w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-2-300x203.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2020\/08\/grafik-2-443x300.png 443w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<ol><li>Run the script and paste the Embed Token, the Report\nID and grab the Embed URL from the Playground. Replace the Report ID and the\nWorkspace (Group) ID<br>\n<\/li><\/ol>\n\n\n\n<p>Done. Weekend!<\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last Saturday a friend of mine called me and he asked, how can generate a Power BI Embed Token. He want to test the embedding on the Power BI Playground (https:\/\/microsoft.github.io\/PowerBI-JavaScript\/demo\/v2-demo\/index.html). I said, that\u2019s easy. Follow the instructions of \u201cGuy &hellip; <a href=\"https:\/\/www.flip-design.de\/?p=712\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/712"}],"collection":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=712"}],"version-history":[{"count":4,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/712\/revisions"}],"predecessor-version":[{"id":720,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/712\/revisions\/720"}],"wp:attachment":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}