Share via


Set-PartnerCustomerSubscription

Updates the specified customer subscription.

Syntax

CustomerObject

Set-PartnerCustomerSubscription
    -InputObject <PSCustomer>
    -SubscriptionId <String>
    [-BillingCycle <BillingCycleType>]
    [-FriendlyName <String>]
    [-PartnerId <String>]
    [-Quantity <Int32>]
    [-Status <SubscriptionStatus>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Customer

Set-PartnerCustomerSubscription
    -CustomerId <String>
    -SubscriptionId <String>
    [-BillingCycle <BillingCycleType>]
    [-FriendlyName <String>]
    [-PartnerId <String>]
    [-Quantity <Int32>]
    [-Status <SubscriptionStatus>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Updates the specified customer subscription.

Examples

Example 1

PS C:\> Set-ParnterCustomerSubscription -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -Subscription dace42ca-22df-4b1f-8f9e-992364dd866e -Quantity 10

Updates the quantity of the subscription to 10 units.

Parameters

-BillingCycle

The billing cycle for the subscription.

Parameter properties

Type:BillingCycleType
Default value:None
Accepted values:Annual, Monthly
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CustomerId

The customer identifier used to scope the request.

Parameter properties

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

Parameter sets

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

-FriendlyName

The friendly name of the subscription.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
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

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

-PartnerId

The Microsoft Partner Network (MPN) identifier for the reseller of record.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Quantity

The quantity of the subscription.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Status

The status of the subscription.

Parameter properties

Type:SubscriptionStatus
Default value:None
Accepted values:Active, Deleted, Suspended
Supports wildcards:False
DontShow:False

Parameter sets

(All)
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

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
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

None

Outputs

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