There seems to be a logic error in Re-Image tasks in NME 7.2.1. Nerdio tries to join the re-imaged VM with its old device ID to Entra ID groups. This fails, because the Entra ID device is deleted and re-created with another ID during the task.
How to reproduce:
- Set up an Entra ID group to join via “Host pool settings → Virtual Machines → Entra ID → Entra ID group(s)”
- Re-Image a VM inside said host pool
- See step “Add to Entra ID security group” fail
Analysis (see timestamps to verify correct order):
-
During step “Get Entra ID device id” the old device ID is discovered and seemingly saved for subsequent steps:

-
Before the VM is deleted, step “Unjoin from Entra ID” deletes the related Entra ID device:

-
Once the new VM is created, step “Join Entra ID” creates a new Entra ID device:

-
Finally, “Add to Entra ID security group” tries to join the device to a group but fails, since it uses the old device ID:

This might be a regression in 7.2.1, since the failures occur since we installed the update. Please check…
Comments (1 comment)