<?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: Get-PowerBICapacity Doesn't Work in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2266562#M33753</link>
    <description>&lt;P&gt;I have the issue too:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-PowerBICapacity : Login first with Login-PowerBIServiceAccount&lt;BR /&gt;At line:5 char:1&lt;BR /&gt;+ Get-PowerBICapacity -Scope Individual&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Get-PowerBICapacity], Exception&lt;BR /&gt;+ FullyQualifiedErrorId : System.Exception,Microsoft.PowerBI.Commands.Capacities.GetPowerBICapacity&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 04:12:27 GMT</pubDate>
    <dc:creator>kerski</dc:creator>
    <dc:date>2022-01-05T04:12:27Z</dc:date>
    <item>
      <title>Get-PowerBICapacity Doesn't Work</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2266054#M33746</link>
      <description>&lt;P&gt;Has anybody gotten this to work in PowerShell?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$caps = Get-PowerBICapacity -Scope Organization;&lt;BR /&gt;&lt;BR /&gt;I've tried with my account, I'm a Capacity Admin, a service principal, and a generic account that has been added to the Capacity admins and contributors.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for any insight.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jan 2022 18:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2266054#M33746</guid>
      <dc:creator>mbutler71</dc:creator>
      <dc:date>2022-01-04T18:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get-PowerBICapacity Doesn't Work</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2266263#M33748</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="286027" data-lia-user-login="mbutler71" class="lia-mention lia-mention-user"&gt;mbutler71&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Seems to be working fine for me. What error are you receiving?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 21:34:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2266263#M33748</guid>
      <dc:creator>Watsky</dc:creator>
      <dc:date>2022-01-04T21:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get-PowerBICapacity Doesn't Work</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2266562#M33753</link>
      <description>&lt;P&gt;I have the issue too:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-PowerBICapacity : Login first with Login-PowerBIServiceAccount&lt;BR /&gt;At line:5 char:1&lt;BR /&gt;+ Get-PowerBICapacity -Scope Individual&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Get-PowerBICapacity], Exception&lt;BR /&gt;+ FullyQualifiedErrorId : System.Exception,Microsoft.PowerBI.Commands.Capacities.GetPowerBICapacity&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 04:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2266562#M33753</guid>
      <dc:creator>kerski</dc:creator>
      <dc:date>2022-01-05T04:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get-PowerBICapacity Doesn't Work</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2267555#M33764</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="330791" data-lia-user-login="kerski" class="lia-mention lia-mention-user"&gt;kerski&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You have to login first before you can run the command. So your Power Shell should look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Login-PowerBIServiceAccount 
Get-PowerBICapacity -Scope Individual&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;This is as long as you are using the regular public enivronment for Power BI &lt;EM&gt;(Non-government cloud).&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 14:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-PowerBICapacity-Doesn-t-Work/m-p/2267555#M33764</guid>
      <dc:creator>Watsky</dc:creator>
      <dc:date>2022-01-05T14:54:42Z</dc:date>
    </item>
  </channel>
</rss>

