< Back

Update-MPCSubscription

Sat Jan 18, 2020 4:12 pm

NAME Update-MPCSubscription



SYNOPSIS

Updates a customer's subscription in the Microsoft Partner Center.





SYNTAX

Update-MPCSubscription [-MPCToken] <String> [-CustomerID] <String> [-Subscription] <PSObject> [-Quantity] <String>

[<CommonParameters>]





DESCRIPTION

Long description





PARAMETERS

-MPCToken <String>

Microsoft Partner Center authentication token



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CustomerID <String>

Customer ID



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Subscription <PSObject>

Object containing subscription information. Received from Get-MPCSubscriptions.



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Quantity <String>

The quantity of licenses to set the subscription to.



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$mpcToken = Get-MPCToken -ApplicationID f5e4f291-6e60-48c0-bc2e-e72e9a3a0464 -Credential (Get-Credential)



$mpcSubscription = (Get-MPCSubscriptions -MPCToken $mpcToken.access_token -CustomerID

e2dcbfa5-cc31-4062-a76f-34b4c2e92a72).items | select -First 1

Update-MPCSubscription -MPCToken $mpcToken -CustomerID e2dcbfa5-cc31-4062-a76f-34b4c2e92a72 -Subscription

$mpcSubscription -Quantity 5











RELATED LINKS