<?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 Add data source to multiple datasets via rest api in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Add-data-source-to-multiple-datasets-via-rest-api/m-p/4177163#M55723</link>
    <description>&lt;P&gt;I am managing well over a hundred PowerBI reports and need to add a data source to all the corresponding datasets. The new data source is an azure sql db with basic auth. I have attempted to do this via the power bi rest api in several different ways, unsuccessfully.&lt;BR /&gt;&lt;BR /&gt;According to the documentation, there doesn't seem to be an endpoint for simply adding / posting new data sources.&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/datasets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the PS scripts linked to in the documentation:&lt;BR /&gt;&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/PowerShell%20Scripts/CreateDatasource.ps1" target="_blank"&gt;https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/PowerShell%20Scripts/CreateDatasource.ps1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain which api endpoint is the right one to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Mike&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 08:16:01 GMT</pubDate>
    <dc:creator>h4tt3n</dc:creator>
    <dc:date>2024-09-26T08:16:01Z</dc:date>
    <item>
      <title>Add data source to multiple datasets via rest api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-data-source-to-multiple-datasets-via-rest-api/m-p/4177163#M55723</link>
      <description>&lt;P&gt;I am managing well over a hundred PowerBI reports and need to add a data source to all the corresponding datasets. The new data source is an azure sql db with basic auth. I have attempted to do this via the power bi rest api in several different ways, unsuccessfully.&lt;BR /&gt;&lt;BR /&gt;According to the documentation, there doesn't seem to be an endpoint for simply adding / posting new data sources.&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/datasets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the PS scripts linked to in the documentation:&lt;BR /&gt;&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/PowerShell%20Scripts/CreateDatasource.ps1" target="_blank"&gt;https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/PowerShell%20Scripts/CreateDatasource.ps1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain which api endpoint is the right one to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Mike&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 08:16:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-data-source-to-multiple-datasets-via-rest-api/m-p/4177163#M55723</guid>
      <dc:creator>h4tt3n</dc:creator>
      <dc:date>2024-09-26T08:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add data source to multiple datasets via rest api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-data-source-to-multiple-datasets-via-rest-api/m-p/4177981#M55752</link>
      <description>&lt;P&gt;That script is for gateway data sources, not semantic model data sources.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually I would have said "use an app template"&amp;nbsp; but in your situation that won't help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally, Power Query is allergic to the idea of dynamically adding data sources. Your only option at the moment is to do this manually. Thankfully you can copy/paste queries across Power Query editors.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 12:14:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-data-source-to-multiple-datasets-via-rest-api/m-p/4177981#M55752</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-26T12:14:15Z</dc:date>
    </item>
  </channel>
</rss>

