microsoft / Partner-Center-PowerShell

PowerShell module for managing Partner Center resources.
https://docs.microsoft.com/powershell/partnercenter/
MIT License
130 stars 59 forks source link

New-PartnerCustomerCart term not supported error on trial offer for new commerce experience #388

Open alankinane opened 2 years ago

alankinane commented 2 years ago

Trying to place a new commerce order for an M365 trial product. Issue seems to be with the duration period. I have tried all of the valid options. Works fine on non-trial licenses.

M365 Business Premium (Trial) Order NCE

$lineItem = New-Object -TypeName Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartLineItem

lineItem.BillingCycle = 'None'
$lineItem.TermDuration = 'P1M'
$lineItem.CatalogItemId = 'CFQ7TTC0LCHC:0003:CFQ7TTC0KF52'
$lineItem.Quantity = 25

Error details:

ErrorCode ErrorDescription


400039 Availability CFQ7TTC0KF52 referenced by line item 0 does not support term ''.

ctmInformationTechnology commented 1 year ago

Did you get a resolution to this? We're seeing the same error.