prevent the autopilot device name template from setting the same name more then once
These settings in the deployment profile will result in multiple machines having the same hostname
Apply device name template
Enter a name
For instance W10-0001 will be assigned to multiple laptops.
Yes, this means that %rand:x% can't really be used at all.
This should be modified in a way that AutoPilot would check from AAD before applying a new name for the device based on random number that does that name already exist.