When deploying the AVD template, I encountered the issue: 'The hostname is already used by another device in this tenant?

Yogesh 5 Reputation points
2025-04-22T06:05:17.2866667+00:00

VM has reported a failure when processing extension 'AADLoginForWindows' (publisher 'Microsoft.Azure.ActiveDirectory' and type 'AADLoginForWindows'). Error message: 'AAD Join failed with status code: -2145648509. AzureSecureVMJoinOperation: DeviceEnroller::AzureSecureVMEnroll failed 0x801c0083. The hostname is already used by another device in this tenant, please change the VM name to redeploy the extension.'. More information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot. . Click here for details

But i have no hostname as same how to fix this

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,763 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.