<?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 Call any Power BI REST API with PowerShell issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2468238#M35618</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;links to members&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to refresh the PoweBI dataset from PowerBI rest API using Powershell getting below error can you please help me how to fix the issue&lt;/P&gt;&lt;P&gt;using command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod -Url "datasets/19b9e00-e8f2-4f81-baae-e2ee907af256/refreshes" -Method Post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;getting error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;BR /&gt;Note: i am running this command on Mac&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 21 Apr 2022 07:45:59 GMT</pubDate>
    <dc:creator>kanth999</dc:creator>
    <dc:date>2022-04-21T07:45:59Z</dc:date>
    <item>
      <title>Call any Power BI REST API with PowerShell issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2468238#M35618</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;links to members&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to refresh the PoweBI dataset from PowerBI rest API using Powershell getting below error can you please help me how to fix the issue&lt;/P&gt;&lt;P&gt;using command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod -Url "datasets/19b9e00-e8f2-4f81-baae-e2ee907af256/refreshes" -Method Post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;getting error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;BR /&gt;Note: i am running this command on Mac&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 21 Apr 2022 07:45:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2468238#M35618</guid>
      <dc:creator>kanth999</dc:creator>
      <dc:date>2022-04-21T07:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Call any Power BI REST API with PowerShell issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2469742#M35629</link>
      <description>&lt;P&gt;You're missing some syntax.&amp;nbsp; Here's what works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$body = "{`n `"notifyOption`": `"MailOnFailure`",`n}"&lt;BR /&gt;$headers = Get-PowerBIAccessToken&lt;BR /&gt;$headers.Add("Content-Type", "application/json")&lt;/P&gt;&lt;P&gt;Try&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;$data_refresh= Invoke-RestMethod -Uri '&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/GROUPID/datasets/DATASETID/refreshes" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/GROUPID/datasets/DATASETID/refreshes&lt;/A&gt;' -Method 'POST' -Headers $headers -Body $body&lt;BR /&gt;Write-Host "Refresh Completed! " -ForegroundColor "Green";&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;Catch&lt;BR /&gt;{&lt;BR /&gt;Write-Host "Failed to Refresh Data! " -ForegroundColor "Red";&lt;BR /&gt;Write-Host "StatusCode:" $_.Exception.Response.StatusCode.value__&lt;BR /&gt;Write-Host "StatusDescription:" $_.Exception.Response.StatusDescription&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 18:04:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2469742#M35629</guid>
      <dc:creator>pvuppala</dc:creator>
      <dc:date>2022-04-21T18:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Call any Power BI REST API with PowerShell issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2470130#M35634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MAC OS and installed the Powershell&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;Install-Module&lt;/SPAN&gt;&lt;SPAN class=""&gt; -Name&lt;/SPAN&gt;&lt;SPAN&gt; MicrosoftPowerBIMgmt command when i try lo login powerbi getting this issue and also when i execute the above commands not able to run getting issue of below&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any idea how we can use&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H1&gt;Microsoft Power BI Cmdlets for Mac PowerShell and PowerShell Core&lt;/H1&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kanth999_0-1650587178578.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/703263i9B6B99A84E64E05B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kanth999_0-1650587178578.png" alt="kanth999_0-1650587178578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 00:32:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2470130#M35634</guid>
      <dc:creator>kanth999</dc:creator>
      <dc:date>2022-04-22T00:32:05Z</dc:date>
    </item>
  </channel>
</rss>

