A cloud-based identity and access management service for securing user authentication and resource access
Hi @Garcia, Cha,
This behavior is expected and not an issue with the Azure VM resource name. Although Azure allows VM resource names up to 64 characters, Windows enforces a 15‑character limit on the computer (hostname). When the VM name exceeds this limit, Windows automatically truncates it, and Microsoft Entra ID registers the device using this truncated hostname, which is why dsregcmd /status shows ACF-ITAMS-STAGE instead of the full VM name.
The AADLoginForWindows extension then fails with error 0x801c0083 (hostname already used) because Entra ID requires device hostnames to be unique within the tenant. If another device (active or stale) already exists with the same truncated name, the join fails.
To prevent this, ensure that the first 15 characters of your naming convention are unique, or remove any stale device objects with the same truncated hostname from Microsoft Entra ID → Devices before redeploying the extension. The Azure VM resource name and the Entra device name do not need to match exactly, but the effective Windows hostname must be unique.
Kindly let us know if the above helps or if you need further assistance on this issue.