<?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: Powershell cmdlet Get-PowerBIDatasource in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Powershell-cmdlet-Get-PowerBIDatasource/m-p/1315366#M25391</link>
    <description>&lt;P&gt;Try it in the sandbox and see if you can replicate the error.&amp;nbsp; Which of these calls are you attempting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets_getdatasourcesasadmin" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets_getdatasourcesasadmin&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasources" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasources&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 16:38:10 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-08-21T16:38:10Z</dc:date>
    <item>
      <title>Powershell cmdlet Get-PowerBIDatasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Powershell-cmdlet-Get-PowerBIDatasource/m-p/1314917#M25381</link>
      <description>&lt;P&gt;Get-PowerBIDatasource -DatasetId 00ce0e46-11a1-4075-8e56-a9c1a9980808 returns following error&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;Get-PowerBIDatasource : Operation returned an invalid status code 'NotFound'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;At line:2 char:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;+ Get-PowerBIDatasource -DatasetId 00ce0e46-11a1-4075-8e56-a9c1a9980808&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;+ CategoryInfo : WriteError: (Microsoft.Power...werBIDatasource:GetPowerBIDatasource) [Get-PowerBIDatasource], HttpOperationException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;+ FullyQualifiedErrorId : Operation returned an invalid status code 'NotFound',Microsoft.PowerBI.Commands.Data.GetPowerBIDatasource&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;as an admin, I am able to get full datasets, workspaces list but for Datasource some datasetID return value correctly and some returns the error message. I would be greatful if some one enlighten me what is a reason behind this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 13:49:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Powershell-cmdlet-Get-PowerBIDatasource/m-p/1314917#M25381</guid>
      <dc:creator>rxt</dc:creator>
      <dc:date>2020-08-21T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell cmdlet Get-PowerBIDatasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Powershell-cmdlet-Get-PowerBIDatasource/m-p/1315366#M25391</link>
      <description>&lt;P&gt;Try it in the sandbox and see if you can replicate the error.&amp;nbsp; Which of these calls are you attempting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets_getdatasourcesasadmin" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets_getdatasourcesasadmin&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasources" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasources&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:38:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Powershell-cmdlet-Get-PowerBIDatasource/m-p/1315366#M25391</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-08-21T16:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell cmdlet Get-PowerBIDatasource</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Powershell-cmdlet-Get-PowerBIDatasource/m-p/1315486#M25392</link>
      <description>&lt;P&gt;Thanks for the Response&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;. I am novice user with admin rights. I found out an article that mentioned as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rxt_0-1598031491679.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/339197iD0F399E8FAC8DD57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rxt_0-1598031491679.png" alt="rxt_0-1598031491679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That may be the real cause behind, I am testing if that is the case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;Just added myself as an admin on the workspace which I didn't have access before and was able to get the data source Information. Thanks to &lt;A href="https://www.sqlchick.com/entries/2018/12/1/how-permissions-work-for-a-power-bi-service-administrator" target="_self"&gt;sqlchick&amp;nbsp;&lt;/A&gt;&amp;nbsp;writer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 18:32:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Powershell-cmdlet-Get-PowerBIDatasource/m-p/1315486#M25392</guid>
      <dc:creator>rxt</dc:creator>
      <dc:date>2020-08-21T18:32:51Z</dc:date>
    </item>
  </channel>
</rss>

