<?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: Automating Updating a Dataset's Datasource and the Gateway Datasource &amp;quot;Maps To&amp;quot; with P in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/2656019#M37511</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/286027"&gt;@mbutler71&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When adding data source users in the gateway admin, you can specifiy a security group. If you add the service principal to the security group, this should then allow you to use the service principal to bind the gateway datasource.&lt;BR /&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 15:00:31 GMT</pubDate>
    <dc:creator>m-colbert</dc:creator>
    <dc:date>2022-07-22T15:00:31Z</dc:date>
    <item>
      <title>Automating Updating a Dataset's Datasource and the Gateway Datasource "Maps To" with PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1909540#M30060</link>
      <description>&lt;P&gt;I was working to implement true CI/CD between Azure DevOps and our Power BI service.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Had a lot of trouble updating the Dataset's (report) Datasource and having it automatically "Maps To" the correct Gateway Datasource (DSN).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So, here is the solution that worked:&lt;BR /&gt;The Service Principal has access to update the Dataset's datasouce, but doesn't have access to the Gateway datasource (interface doesn't allow it at this time). So, we use the Service Principal to update the datasource in one PowerShell script, and a Generic Id to refresh the gateway (Bind To Gateway) in another PowerShell script. These two tasks, running sequentially, now run successfully in our DevOps Release Pipeline.&lt;BR /&gt;&lt;BR /&gt;Hope this helps someone.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 19:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1909540#M30060</guid>
      <dc:creator>mbutler71</dc:creator>
      <dc:date>2021-06-18T19:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Updating a Dataset's Datasource and the Gateway Datasource "Maps To" with P</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1911081#M30068</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/286027"&gt;@mbutler71&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Thanks for sharing, This should help if someone faced similar requirements.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;BTW, I think you can also consider submitting ideas or contact the power bi dev team to report this requirement to help improving power bi features.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 05:44:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1911081#M30068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-21T05:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Updating a Dataset's Datasource and the Gateway Datasource "Maps To" with P</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1912725#M30087</link>
      <description>&lt;P&gt;Not sure where to submit that, but they should allow the &lt;STRONG&gt;Service Principal&lt;/STRONG&gt; accounts to be added to the Gateway Datasource "Users."&amp;nbsp;&lt;BR /&gt;That would help. It would allow us to use one account for the whole process.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1912725#M30087</guid>
      <dc:creator>mbutler71</dc:creator>
      <dc:date>2021-06-21T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Updating a Dataset's Datasource and the Gateway Datasource "Maps To" with P</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1913856#M30096</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/286027"&gt;@mbutler71&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can discuss these on the power bi 'feature release' blog('power bi xxxx feature summary' which mentioned the embedded features) or submit and the idea forum. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Here is the link of ideas foumn:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;Power BI Ideas&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 06:45:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1913856#M30096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-22T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Updating a Dataset's Datasource and the Gateway Datasource "Maps To" with P</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1915467#M30109</link>
      <description>&lt;P&gt;All set, thanks for the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=d7bb30d3-5ed3-eb11-ba5e-501ac50a6edb" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=d7bb30d3-5ed3-eb11-ba5e-501ac50a6edb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/1915467#M30109</guid>
      <dc:creator>mbutler71</dc:creator>
      <dc:date>2021-06-22T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Updating a Dataset's Datasource and the Gateway Datasource "Maps To" with P</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/2655684#M37510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using org service account that's synced to Azure AD. When I manually login (&lt;SPAN&gt;Login-PowerBIServiceAccount) it works - I get pop up to login where I would enter service account anme and password into my org login page. Then it connects and I can bind the gateway.&amp;nbsp; However when I try to use below code for automation, it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$PbiSecurePassword = ConvertTo-SecureString $password -Force -AsPlainText&lt;BR /&gt;$PbiCredential = New-Object Management.Automation.PSCredential($username, $PbiSecurePassword)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect-PowerBIServiceAccount -Credential $PbiCredential&lt;BR /&gt;Login-PowerBIServiceAccount -Credential $PbiCredential&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Ideas: I am thinking that it's because I am not using&amp;nbsp;@onmicrosoft.com account and for some reason PowerBi commandlet doesn't&amp;nbsp; support connect / login doesn't support&amp;nbsp; accounts that are synced via Azure Sync??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advise is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 12:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/2655684#M37510</guid>
      <dc:creator>khemkandel</dc:creator>
      <dc:date>2022-07-22T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Updating a Dataset's Datasource and the Gateway Datasource "Maps To" with P</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/2656019#M37511</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/286027"&gt;@mbutler71&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When adding data source users in the gateway admin, you can specifiy a security group. If you add the service principal to the security group, this should then allow you to use the service principal to bind the gateway datasource.&lt;BR /&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:00:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automating-Updating-a-Dataset-s-Datasource-and-the-Gateway/m-p/2656019#M37511</guid>
      <dc:creator>m-colbert</dc:creator>
      <dc:date>2022-07-22T15:00:31Z</dc:date>
    </item>
  </channel>
</rss>

