Forum Discussion

mbutler71's avatar
mbutler71
Advocate I
4 years ago
Solved

Get-PowerBICapacity Doesn't Work

Has anybody gotten this to work in PowerShell? $caps = Get-PowerBICapacity -Scope Organization; I've tried with my account, I'm a Capacity Admin, a service principal, and a generic account t...
  • Watsky's avatar
    Watsky
    4 years ago

    Hey kerski,

    You have to login first before you can run the command. So your Power Shell should look like this:

    Login-PowerBIServiceAccount 
    Get-PowerBICapacity -Scope Individual

     This is as long as you are using the regular public enivronment for Power BI (Non-government cloud).