This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Description Steps to reproduce
Run the following command in an environment that is not qualified for education
Set-PartnerCustomerQualification - CustomerId $customerId - Qualification Education
Expected behavior
An error message to be returned stating the following
Actual behavior
Set-PartnerCustomerQualification : Error converting value "Customer tagging denied." to type 'Microsoft.Store.PartnerCenter.Models.ApiFault'. Path '', line 1, position 26.
At line:1 char:1
+ Set-PartnerCustomerQualification -CustomerId $customerId ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-PartnerCustomerQualification], JsonSerializationException
+ FullyQualifiedErrorId : Microsoft.Store.PartnerCenter.PowerShell.Commands.SetPartnerCustomerQualification
Diagnostic logs
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://api.partnercenter.microsoft.com/v1/customers/REMOVED/qualification
Headers:
Accept : application/json
MS-PartnerCenter-Client : Partner Center PowerShell
MS-CorrelationId : d0739453-c547-4db2-bda3-9024dc4b8de0
X-Locale : en-US
MS-RequestId : 537b3e56-cb2f-4f71-b5b2-e40bfd697fd4
MS-SdkVersion : 1.15.5.0
Body:
"Education"
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Conflict
Headers:
MS-CorrelationId : d0739453-c547-4db2-bda3-9024dc4b8de0
MS-RequestId : 537b3e56-cb2f-4f71-b5b2-e40bfd697fd4
Body:
"Customer tagging denied."
Environment
PS 5.1
Module 3.0.5