Get-PowerBICapacity

Returns a list of Power BI capacities.

Syntax

Get-PowerBICapacity
   [-Scope <PowerBIUserScope>]
   [-ShowEncryptionKey]
   [<CommonParameters>]

Description

Retrieves a list of Power BI capacities that matches the specified scope.

Before you run this command, make sure you log in using Connect-PowerBIServiceAccount.

Examples

Example 1

PS C:\> Get-PowerBICapacity -Scope Organization -ShowEncryptionKey

Parameters

-Scope

Indicates scope of the call. Individual returns only capacities assigned to the caller; Organization returns all capacities within a tenant (must be an administrator to initiate). Individual is the default.

Type:PowerBIUserScope
Accepted values:Individual, Organization
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ShowEncryptionKey

Show encryption key details.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Collections.Generic.IEnumerable`1[[Microsoft.PowerBI.Common.Api.Capacities.Capacity, Microsoft.PowerBI.Common.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]