Create a group for all Autopilot devices
Working with Autopilot and need a group covering all AutoPilotet enrolled devices?
Michael Niehaus has this covered in his blogpost: Autopilot profile assignment using Intune
The quick guide will be to create a Dynamic group in Azure AD with the following rule syntax:
(device.devicePhysicalIDs -any _ -contains "[ZTDId]")