Event details
You should be able to apply a template: https://learn.microsoft.com/en-us/autopilot/profiles
(requires Microsoft Entra join type): Select Yes to create a template to use when naming a device during enrollment. Names must be 15 characters or less, and can have letters, numbers, and hyphens. Names can't be all numbers. Use the %SERIAL% macro to add a hardware-specific serial number. Or, use the %RAND:x% macro to add a random string of numbers, where x equals the number of digits to add. Only a prefix can be provided for hybrid devices in a domain join profile.
The advantage is essentially saving time and automating deployment processes.
I already use the normal autopilot deployment With name template trough a deployment profile, but just trying to understand the use of Device preparation policies, that is similar to the normal autopilot.