Get-​Msol​Subscription

Gets subscriptions.

Syntax

Get-MsolSubscription
   -SubscriptionId <Guid>
   [-TenantId <Guid>]
   [<CommonParameters>]

Description

The Get-MsolSubscription cmdlet gets all the subscriptions that the company has purchased. When assigning licenses to users, the Get-MsolAccountSku cmdlet should be used instead.

Examples

Example 1: Gets a list of company subscriptions

PS C:\> Get-MsolSubscription

This command gets a list of company subscriptions. For license assignment, the Get-MsolAccountSku cmdlet should be used instead.

Required Parameters

-SubscriptionId

Specifies the unique object ID of the subscription to retrieve.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-TenantId

Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

Microsoft.Online.Administration.Subscription