Setting the desired device ID is only supported in individual enrollments
Reference on Individual enrollments
Reference on Group enrollments
You can create individual enrollment from DPS service to set desired device id.
Please check provision_symmetric_key_with_group for sample usage.
Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.
Thank You.