Get-PartnerCustomerSubscription

Gets a list or a single customer subscription.

Syntax

ByCustomer (Default)

Get-PartnerCustomerSubscription
    -CustomerId <String>
    [-OrderId <String>]
    [-MpnId <String>]
    [-SubscriptionId <String>]
    [<CommonParameters>]

ByCustomerObject

Get-PartnerCustomerSubscription
    -InputObject <PSCustomer>
    [-OrderId <String>]
    [-MpnId <String>]
    [-SubscriptionId <String>]
    [<CommonParameters>]

ByOrder

Get-PartnerCustomerSubscription
    -CustomerId <String>
    -OrderId <String>
    [<CommonParameters>]

ByPartner

Get-PartnerCustomerSubscription
    -CustomerId <String>
    -MpnId <String>
    [<CommonParameters>]

Description

Gets a list or a single customer subscription.

Examples

Example 1

PS C:\> Get-PartnerCustomerSubscription -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08

Gets a list of subscriptions for the specified customer.

Example 2

PS C:\> Get-PartnerCustomerSubscription -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -SubscriptionId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e

Gets the specified customer subscription.

Parameters

-CustomerId

The customer identifier used to scope the request.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByCustomer
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByOrder
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByPartner
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

The customer object used to scope the request.

Parameter properties

Type:PSCustomer
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByCustomerObject
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-MpnId

The Microsoft Parnter Network identifier that identifies the partner.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByCustomer
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByCustomerObject
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OrderId

The identifier corresponding to the order.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByCustomer
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByCustomerObject
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The subscription identifier used to scope the request.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByCustomer
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByCustomerObject
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Customers.PSCustomer

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Subscriptions.PSSubscription