<?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 Update DataSet Credentials using Service Principal - Using SDK in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Update-DataSet-Credentials-using-Service-Principal-Using-SDK/m-p/3069460#M41120</link>
    <description>&lt;P&gt;I have the exact same issue as this message.&amp;nbsp; However we are using the .Net SDK and don't want to use powershell.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Update-DataSet-Credentials-using-Service-Principal/m-p/2236065" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Developer/Update-DataSet-Credentials-using-Service-Principal/m-p/2236065&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Collins_Rowan_1-1675868106593.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/868544iA6677A5BF9C21E12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Collins_Rowan_1-1675868106593.png" alt="Collins_Rowan_1-1675868106593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The CredentialData object does have serialize commands to format the request properly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Collins_Rowan_0-1675869897757.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/868557i1016E08C53201947/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Collins_Rowan_0-1675869897757.png" alt="Collins_Rowan_0-1675869897757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give a bit more detail, I get a 500 server error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Collins_Rowan_0-1675868013594.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/868542iD90A798B793425E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Collins_Rowan_0-1675868013594.png" alt="Collins_Rowan_0-1675868013594.png" /&gt;&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;Theoretically there shouldn't be any major differences between the SDK, Direct API calls and Powershell commandlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 15:25:20 GMT</pubDate>
    <dc:creator>Collins_Rowan</dc:creator>
    <dc:date>2023-02-08T15:25:20Z</dc:date>
    <item>
      <title>Update DataSet Credentials using Service Principal - Using SDK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Update-DataSet-Credentials-using-Service-Principal-Using-SDK/m-p/3069460#M41120</link>
      <description>&lt;P&gt;I have the exact same issue as this message.&amp;nbsp; However we are using the .Net SDK and don't want to use powershell.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Update-DataSet-Credentials-using-Service-Principal/m-p/2236065" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Developer/Update-DataSet-Credentials-using-Service-Principal/m-p/2236065&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Collins_Rowan_1-1675868106593.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/868544iA6677A5BF9C21E12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Collins_Rowan_1-1675868106593.png" alt="Collins_Rowan_1-1675868106593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The CredentialData object does have serialize commands to format the request properly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Collins_Rowan_0-1675869897757.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/868557i1016E08C53201947/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Collins_Rowan_0-1675869897757.png" alt="Collins_Rowan_0-1675869897757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give a bit more detail, I get a 500 server error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Collins_Rowan_0-1675868013594.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/868542iD90A798B793425E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Collins_Rowan_0-1675868013594.png" alt="Collins_Rowan_0-1675868013594.png" /&gt;&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;Theoretically there shouldn't be any major differences between the SDK, Direct API calls and Powershell commandlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 15:25:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Update-DataSet-Credentials-using-Service-Principal-Using-SDK/m-p/3069460#M41120</guid>
      <dc:creator>Collins_Rowan</dc:creator>
      <dc:date>2023-02-08T15:25:20Z</dc:date>
    </item>
  </channel>
</rss>

