<?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: Connect PowerBI REST API (PowerBIPS) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1244919#M24892</link>
    <description>&lt;P&gt;There are multiple options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The standard InvokeRestApiCall commands can do the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use data source parameters on the service&lt;/P&gt;&lt;P&gt;Deployment Pipelines may be an alternative if you are on Premium.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also look into ALMToolkit.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 12:01:40 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-07-23T12:01:40Z</dc:date>
    <item>
      <title>Connect PowerBI REST API (PowerBIPS)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1242505#M24873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This my first time trying to configure&amp;nbsp;PowerBI REST API and I'm having some problems to connect.&lt;/P&gt;&lt;P&gt;I'm trying to use PowerBIPS. (&lt;A href="https://ruiromanoblog.wordpress.com/tag/powerbips/" target="_blank" rel="noopener"&gt;https://ruiromanoblog.wordpress.com/tag/powerbips/)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/DevScope/powerbi-powershell-modules/blob/master/Modules/PowerBIPS/PowerBIPS.md" target="_blank" rel="noopener"&gt;https://github.com/DevScope/powerbi-powershell-modules/blob/master/Modules/PowerBIPS/PowerBIPS.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- I created an an App at&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://dev.powerbi.com/apps" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dev.powerbi.com/apps&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;as Server-side web application (don't know what configure in url; we use PowerBI Online)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- I got my client_id and secret_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- I gave all the permissions&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-07-22_17h20_54.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/317471i09E35F8FCAB598D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-07-22_17h20_54.png" alt="2020-07-22_17h20_54.png" /&gt;&lt;/span&gt;&lt;BR /&gt;When I try to run:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Install-Module -Name PowerBIPS

#PBI-PowerBIPS
$tenantId = "ab96XXXX-XXXX-XXXX-XXXX-XXXXda9ada1"
$clientId = "b3d7XXXX-XXXX-XXXX-XXXX-XXXX160e0f4" 
$clientSecret = "_Jti.XXXX-XXXXfCfG"
#url: http://localhost:1234/resirect.aspx

$authToken = Get-PBIAuthToken -clientId $clientId -clientSecret $clientSecret -tenantId $tenantId

$reports = Get-PBIReport -authToken $authToken -groupId "8e921e7f-50d5-4068-88bc-157a0f1a62ec" -Verbose&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;VERBOSE: Getting Reports
VERBOSE: GET https://api.powerbi.com/v1.0/myorg/groups/50224abf-8c80-4644-88e4-e3f38078245b/reports with 0-byte payload
Invoke-PBIRequest : The remote server returned an error: (401) Unauthorized. - ''
At C:\Program Files\WindowsPowerShell\Modules\PowerBIPS\2.0.4.2\PowerBIPS.psm1:621 char:16
+ ... reports = @(Invoke-PBIRequest -authToken $authToken -method Get -reso ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WebException
    + FullyQualifiedErrorId : System.Net.WebException,Invoke-PBIRequest
VERBOSE: Found 0 reports.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried to follow this setps:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I couldn't do step 4. Shows different.&lt;/P&gt;&lt;P&gt;In workspace members if I search for the App, showes nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need your help.&lt;/P&gt;&lt;P&gt;Please, try explain with details, because really don't understand any of this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 16:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1242505#M24873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T16:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI REST API (PowerBIPS)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1243270#M24886</link>
      <description>&lt;P&gt;What's your reasoning for using PowerBIPS ?&amp;nbsp; Would you be willing to run native Powershell instead?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This thread has most fo the details.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Service/Power-BI-REST-API-gives-403-error/m-p/1232096#M102893" target="_blank"&gt;https://community.powerbi.com/t5/Service/Power-BI-REST-API-gives-403-error/m-p/1232096#M102893&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 00:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1243270#M24886</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-23T00:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI REST API (PowerBIPS)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1244550#M24891</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;We publish 5-6 reports per week.&amp;nbsp;To do this we have to open pbix file in PowerBI Desktop, in datasource change staging sql server to production&amp;nbsp;sql server, and do the same to login and password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to automate this. After a search in google found that PowerBIPS allows me to do this.&lt;/P&gt;&lt;P&gt;Do you have any other suggestion to make this?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 10:15:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1244550#M24891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-23T10:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI REST API (PowerBIPS)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1244919#M24892</link>
      <description>&lt;P&gt;There are multiple options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The standard InvokeRestApiCall commands can do the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use data source parameters on the service&lt;/P&gt;&lt;P&gt;Deployment Pipelines may be an alternative if you are on Premium.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also look into ALMToolkit.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 12:01:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1244919#M24892</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-23T12:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI REST API (PowerBIPS)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1245334#M24895</link>
      <description>&lt;P&gt;Any examples on how can I use any of this options?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 14:23:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1245334#M24895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-23T14:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI REST API (PowerBIPS)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1245347#M24896</link>
      <description>&lt;P&gt;The standard InvokeRestApiCall commands can do the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Service/Power-BI-REST-API-gives-403-error/m-p/1232096#M102893" target="_blank"&gt;https://community.powerbi.com/t5/Service/Power-BI-REST-API-gives-403-error/m-p/1232096#M102893&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use data source parameters on the service&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/service-parameters" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/connect-data/service-parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deployment Pipelines may be an alternative if you are on Premium.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/introducing-power-bi-deployment-pipelines-preview/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/introducing-power-bi-deployment-pipelines-preview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also look into ALMToolkit.&lt;/P&gt;&lt;P&gt;&lt;A href="http://alm-toolkit.com/" target="_blank"&gt;http://alm-toolkit.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 14:26:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connect-PowerBI-REST-API-PowerBIPS/m-p/1245347#M24896</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-23T14:26:51Z</dc:date>
    </item>
  </channel>
</rss>

