Jim Posted March 14 Share Posted March 14 Hi, I have some weird behaviour with the intune import for mobile assets, when I query all ios devices I get a return of 1953 devices, If I say return all ios and ownership is company I get 2105, How can this be? The reason I am testing this is because out of 2119 assets that I see in intune for corporate owned and are iphones, only 2036 are being updates, missing the last 83, adding to the query I stated a specific serial number of a device that was not updating, once run this worked and updated the single asset that otherwise was not updating, my only guess without seeing the code, is that the last lot of 100 from the api is not being iterated through? Can this be investigated please Link to comment Share on other sites More sharing options...
SamS Posted April 22 Share Posted April 22 Hi @Jim, I am assuming that you are referencing the OData Query. If that is the case, please confirm (eg in ... ) that you are indeed getting back what you are expecting from InTune directly. There are a few known issues with InTune's OData implementation (i.e. one can't use startswith on the OS field and null queries are also shaky). I would personally recommend to not rely on the OData Query (yet) and do the filtering after the utility extracts the data using AdditionalFilters. Yes, that does mean that if you want to only process 2 items, all devices will be extracted up front. Inefficient, but it should work. Link to comment Share on other sites More sharing options...
Jim Posted April 22 Author Share Posted April 22 Hi @SamS, That is exactly how I have been doing it, So I am not convinced it is just the oData query Link to comment Share on other sites More sharing options...
Ricky Posted Tuesday at 08:41 Share Posted Tuesday at 08:41 Hi @Jim, I think you may be using the wrong value for "managedDeviceOwnerType", currently, you have it as "company"; I believe this should be set to "corporate". Link to comment Share on other sites More sharing options...
Jim Posted Tuesday at 08:45 Author Share Posted Tuesday at 08:45 Hi, @Ricky I was going off this resource managedDevice resource type - Microsoft Graph v1.0 | Microsoft Learn I can try it as corporate and see how it goes, but the Hornbill side of the documentation doesn't mention which resource / api is used which is why I have assumed it is this one to see what values I can set. I'll let you know if there is any difference / issues Link to comment Share on other sites More sharing options...
Ricky Posted Tuesday at 08:58 Share Posted Tuesday at 08:58 Hi Jim, my apologies, you are correct it is the company and not corporate, I was looking at the wrong MS documentation Link to comment Share on other sites More sharing options...
Jim Posted Tuesday at 09:03 Author Share Posted Tuesday at 09:03 No worries saves me testing Link to comment Share on other sites More sharing options...
SamS Posted Thursday at 09:18 Share Posted Thursday at 09:18 Hi @Jim, So there are two numbers of import: 1) how many items returned on the (empty) query from Intune 2) the amount of items the utility is updating. If I read your post correctly, then you are suggesting that the first number is incorrect. If so, please confirm what https://graph.microsoft.com/v1.0/deviceManagement/managedDevices is returning via https://developer.microsoft.com/en-us/graph/graph-explorer (you will need to log in via the same account as used with the KeySafe entry creation) because that is what Intune is returning to our utility. If the number is discrepant here, then I would have to direct you to your Intune documentation. IF the number here IS what you were expecting, please let us know, because then some assets are dropping off on our side... The latter number could be discrepant because of various reasons, eg certain assets are skipped (no changes detected) or do not drop into any of your filters (also: please confirm that managedDeviceOwnerType is listed in the Intune.Fields array - it is there by default, so I suspect it is). Link to comment Share on other sites More sharing options...
Jim Posted Thursday at 10:36 Author Share Posted Thursday at 10:36 Hi Sam, These numbers match for me Link to comment Share on other sites More sharing options...
Jim Posted Thursday at 10:39 Author Share Posted Thursday at 10:39 and checking the log for last night Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now