Docs
On this page
task3 min readApplication: Microsoft Intune Integration

Run and schedule the Microsoft Intune sync

Choose the V1 or V2 sync, run a first import from Microsoft Intune, review the CIs and set the daily schedule.

Run the first Microsoft Intune import, check the CIs it creates and then let the job run on a schedule. This page is for administrators who have already connected Intune to Servicely.

Before you begin

  • You need the administrator role.
  • The connection is set up and the Auth token property points at a token in the Ready state. See Connect Microsoft Intune to the CMDB.
  • Agree with your configuration management stakeholders which device types and attributes the CMDB needs.

Steps

  1. Go to Microsoft Intune → Job. Set Active to No and save, so the scheduled run waits until you have reviewed the first import.

    The Job item in the Microsoft Intune menu, with Properties above it.
  2. Go to Microsoft Intune → Properties. Select Is V2 Enabled to use V2, or clear it to use V1. The form shows the settings for the version you choose.

  3. For V2, set Software Sync Enabled if you want detected apps imported. Then open each record in the Intune Device Configurations list (Desktops and Laptops ship active). Check its Endpoint filter and set Sync Software Installations if you want app installations for that device type. Leave Delta Enabled off until a full sync has completed.

  4. For V1, review Desktop API endpoint and Laptop API endpoint so the deviceType filters cover every device type you need. To skip a device type, clear its endpoint. V1 also reads Installed software API structure, which is device or software. It ships as device. Select Save & stay.

  5. On the job record, copy the Script value. Go to System & deployment → Diagnostics → Server script and run it once.

  6. With your configuration management stakeholders, review the CIs the import created. Check that the mapped fields are filled in and that the counts of laptops, desktops and software are close to what Intune shows.

  7. To map another Intune attribute, add it to the Fields value of the staging table and select Delete temporary table, then Generate temporary table. Add a mapping for it to the transform map of that staging table. To match devices on serial number instead of the Intune ID, make the serial number mapping the primary key.

    The Fields value of the IntuneCMDBLaptop staging table with the attributes the integration imports by default.
  8. Go to System & deployment → Housekeeping → System table cleanup. Activate the four Clean up intune … records entries. Each removes staging rows older than seven days. Change the retention first if you need a different period.

  9. On the job record, change the Cron expression if once a day at 01:00 does not suit you. Set Active to Yes and save.

Result

The job imports from Intune on its schedule. Devices land in CMDBDesktop and CMDBLaptop, detected apps in CMDBEndUserSoftware and app installations in CMDBInstalledSoftware, each CI with External source set to Intune. While a sync runs, the job and the properties form show Stop all processing, and a second run does not start until the first has finished. An administrator can open an Intune CI and select Get Intune API payload to see the data Intune returned for it.

Last updated 3 December 2026commit 8d233372fa05Chris Jones
Back to top