< Back

New-MPCOrder

Sat Jan 18, 2020 4:11 pm

NAME New-MPCOrder



SYNOPSIS

Creates a new order in the Microsoft Partner Center.





SYNTAX

New-MPCOrder [-MPCToken] <String> [-CustomerID] <String> [-OfferID] <String> [-Quantity] <Int32>

[<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



-OfferID <String>

Offer ID



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Quantity <Int32>

The number of licenses



Required? true

Position? 4

Default value 0

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)



$mpcOffer = (Get-MPCOffers -MPCToken $mpcToken.access_token).items | select -First 1

New-MPCOrder -MPCToken $mpcToken.access_token -CustomerID e2dcbfa5-cc31-4062-a76f-34b4c2e92a72 -OfferID

$mpcOffer.id -Quantity 5











RELATED LINKS