Session host VM names are assigned in one of two ways.
- By adding a VM to a host pool manually. You can manually add 1 or more hosts to a static or dynamic host pool by clicking the Add session host button. When adding 1 host you can specify that host's name (VM name and AD computer object name).
- Automatically generated by Nerdio Manager. When manually adding more than 1 host to a host pool, you provide the a name prefix and the system will add "-xxxx" suffix with randomly generated alphanumeric characters.
This article will review the process of name generation and how to license applications that rely on static computer names.
When Nerdio Manager creates a net new VM (i.e. one that never existed before) automatically (e.g. during creation of a host pool or increasing the host pool size to contain more VMs) it will append a randomly generated 4 character alphanumeric suffix to the host name.
Once generated and assigned this suffix will never change. It is permanent. Even if the host is scaled in automatically by being deleted after business hours and then re-created the following morning, the name will stay the same.
This is also true when session host VMs are re-imaged using the Resize/Re-image command. The VM name will be re-used.
The only way to "release" a VM name is by manually deleting it from the Nerdio Manager. This way, when a new VM gets created in the future it will have a net new name.
If you have an application that requires the list of machine names in advance, you should create the host pool with whatever number of VMs are needed and make a note of all of their names. These names will not change even if the hosts are deleted and re-created by the auto-scale engine.