Create group tags to auto populate groups with devices.
Use the upload-windowsautopilotdeviceinfo script with the -grouptag option to automatically set the group tag.
Or set it manually in the intune console
Force a sync or wait up to 12 hours for the next one to occur.
Or add a Group Tag collum in the .csv file
Create a dynamic device group with the following syntax:
(device.devicePhysicalIds -any _ -eq “[OrderID]:GroupTag”)