-
Notifications
You must be signed in to change notification settings - Fork 60
Get-PartnerCustomerDevice does not return assigned Policies on devices #271
Comments
@Crille77 thank you for sharing this with us. The required code changes to address this issue have been made. Right now I do not have an exact time frame for the next release, but I can grantee that this will be included in version 3.0.7 |
Thanks for fixing the bug in the upcoming release! |
Hi!
If I now tries to verify the Policy-value again, I end up in getting the same bad result...
$dev.Policies doesn't give me any output and verifying if empty confirms it not being set and the debug output still outputs the correct info that should be in that variable...
Do you have any other suggestions??? Am I doing something wrong?? |
OK... I have had a lot trouble when trying the artifact... I once succeded using it... Most of the times I end up in trouble getting "Sequence contains no matching element" when trying to import a batch. I have tried both having 3.0.6 installed and loading the artifact using Is there something wrong in the artifact or am I doing something wrong??? Some Debug info:
|
Update... I have tested using But one positive thing is that after I imported one computer using 3.0.6, I used |
Hi @IsaiahWilliams! Do you have any update regarding bugs? (Fixed bug in Policy & New bug in artifact when trying to upload a new batch). I would really need a fix for this asap... We will start deployment of 2000+ computers this week where this is quite important to have in place... Is it doable for you to fix the artifact so both uploading a new batch and getting computer policies works in a release or a new artifact quite soon? TIA /Christian |
I have imported new computers using New-PartnerCustomerDeviceBatch without specifying any Policy since the customer has configured that to be applied automaticly . I can see that this works when looking in PartnerCenter or in the debug output of Get-PartnerCustomerDevice.
When I issue the command Get-PartnerCustomerDevice to get all the imported computers in the batch, I dont get the Policies property set! I have used the command using -debug and there I can see that the Policy value is shown in the output but it doesn't get returned.
$device = Get-PartnerCustomerDevice -CustomerId $CustomerID -BatchId $Batch -Debug
Debug output:
Body:
{
"totalCount": 1,
"items": [
{
"id": "XXXX",
"serialNumber": "XXX",
"modelName": "XXX",
"oemManufacturerName": "XXX",
"policies": [
{
"key": "o_o_b_e",
"value": "AzureAD Join Default Profile"
}
],
"uploadedDate": "2020-01-30T09:10:33.2417951+01:00",
"attributes": {
"objectType": "Device"
}
}
],
"links": {},
"attributes": {
"objectType": "Collection"
}
}
Verifying returned object values:
$device | select *
AllowedOperations :
DeviceId : XXXX
HardwareHash :
ModelName : XXX
OemManufacturerName : XXX
Policies :
ProductKey :
SerialNumber : XXX
UploadedDate : 2020-01-30 08:10:33
As you can see, the value of Policies is empty...
The text was updated successfully, but these errors were encountered: