Share via


Set-PartnerCustomerSubscription

Updates the specified customer subscription.

Syntax

Set-PartnerCustomerSubscription
   -InputObject <PSCustomer>
   [-BillingCycle <BillingCycleType>]
   [-FriendlyName <String>]
   [-PartnerId <String>]
   [-Quantity <Int32>]
   [-Status <SubscriptionStatus>]
   -SubscriptionId <String>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-PartnerCustomerSubscription
   [-BillingCycle <BillingCycleType>]
   -CustomerId <String>
   [-FriendlyName <String>]
   [-PartnerId <String>]
   [-Quantity <Int32>]
   [-Status <SubscriptionStatus>]
   -SubscriptionId <String>
   [-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.

Type:BillingCycleType
Accepted values:Annual, Monthly
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-CustomerId

The customer identifier used to scope the request.

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

-FriendlyName

The friendly name of the subscription.

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

-InputObject

The customer object used to scope the request.

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

-PartnerId

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

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

-Quantity

The quantity of the subscription.

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

-Status

The status of the subscription.

Type:SubscriptionStatus
Accepted values:Active, Deleted, Suspended
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The subscription identifier used to scope the request.

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

-WhatIf

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

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

Inputs

None

Outputs

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