<?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 PowerShell module for PowerBi : Is it possible to use it in write mode with a service principal ? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-module-for-PowerBi-Is-it-possible-to-use-it-in-write/m-p/3229208#M42609</link>
    <description>&lt;P&gt;&lt;FONT size="3"&gt;Hi all, &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;After unsuccessull tests, i'd like to know if a service principal can use the powershell module&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;MicrosoftPowerBIMgmt in write mode ? I didn't find any doc.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;Indeed, i try to rename workspaces but i always get an "unauthorized" message in powerShell authenticated via my service principal. The same command with my personnal account is ok. Both my account and my service principal are PowerBi Admin. Read-only api option is activated in PowerBi service.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Set-PowerBIWorkspace -Scope Organization -Id 1efe3ca9-62dd-4b63-bca4-8eb433f8f0ff -Name NewName -Description "Test" -ErrorAction Stop
WARNING: Only preview workspaces are supported when -Scope Organization is specified
Set-PowerBIWorkspace: Operation returned an invalid status code 'Unauthorized'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read data is possible and works fine for my service principal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":winking_face:"&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 16:35:20 GMT</pubDate>
    <dc:creator>JulienRouleau</dc:creator>
    <dc:date>2023-05-10T16:35:20Z</dc:date>
    <item>
      <title>PowerShell module for PowerBi : Is it possible to use it in write mode with a service principal ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-module-for-PowerBi-Is-it-possible-to-use-it-in-write/m-p/3229208#M42609</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Hi all, &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;After unsuccessull tests, i'd like to know if a service principal can use the powershell module&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;MicrosoftPowerBIMgmt in write mode ? I didn't find any doc.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;Indeed, i try to rename workspaces but i always get an "unauthorized" message in powerShell authenticated via my service principal. The same command with my personnal account is ok. Both my account and my service principal are PowerBi Admin. Read-only api option is activated in PowerBi service.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Set-PowerBIWorkspace -Scope Organization -Id 1efe3ca9-62dd-4b63-bca4-8eb433f8f0ff -Name NewName -Description "Test" -ErrorAction Stop
WARNING: Only preview workspaces are supported when -Scope Organization is specified
Set-PowerBIWorkspace: Operation returned an invalid status code 'Unauthorized'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read data is possible and works fine for my service principal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":winking_face:"&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 16:35:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-module-for-PowerBi-Is-it-possible-to-use-it-in-write/m-p/3229208#M42609</guid>
      <dc:creator>JulienRouleau</dc:creator>
      <dc:date>2023-05-10T16:35:20Z</dc:date>
    </item>
  </channel>
</rss>

