Udostępnij za pośrednictwem


Get-MsolAccountSku

Updated: July 30, 2015

Applies To: Azure, Office 365, Windows Intune

Note



  • The cmdlets were previously known as the Microsoft Online Services Module for Windows PowerShell cmdlets.

The Get-MsolAccountSku returns all the SKUs that the company owns.

Syntax

Get-MsolAccountSku [-TenantId <Guid>] [<CommonParameters>]

Parameters

    -TenantId <Guid>
        The unique ID of the tenant to perform the operation on. If this is 
        not provided then the value will default to the tenant of the current 
        user. This parameter is only applicable to partner users.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, type,
        "get-help about_commonparameters".

Examples

The output is provided by Microsoft.Online.Administration.AccountSKU. Each AccountSKU returned will include the following information:

  • AccountName: The name of the account this SKU belongs to.

  • AccountObjectId: The unique ID of the account this SKU belongs to.

  • AccountSkuId: The unique string ID of the account/SKU combination. This value should be used when assigning or updating licenses.

  • ActiveUnits: The number of active licenses.

  • ConsumedUnits: The number of license that have been used.

  • ServiceStatus: The provisioning status of individual services belonging to this SKU.

  • SkuId: The unique ID for the SKU.

  • SkuPartNumber: The partner number of this SKU.

  • SubscriptionIds: A list of all subscriptions associated with this SKU. For the purposes of assigning licenses, all subscriptions with the same SKU will be grouped into a single license pool.

  • SuspendedUnits: The number of suspended licenses. These licenses are not available for assignment.

  • TargetClass: The target class of this SKU. Only SKUs with target class=user are assignable.

  • WarningUnits: The number of warning units.

Example 1

The following command returns a list of SKUs.

Get-MsolAccountSku

Additional Resources

There are several other places you can get more information and help. These include:

See Also

Other Resources

Manage Azure Active Directory by using Windows PowerShell