Hi Xsomo,
Thank You for reaching out to Microsoft Q&A forum.
As you are facing an issue to add an existing vm as a session host to host pool of avd, can you please try below commands by executing in existing vm to reinstall bootloader and agents properly by uninstalling the existing boot loader and agents. Before that, check VM images are compatible with AVD environment.
# Download Azure Virtual Desktop agent
Invoke-WebRequest -URI https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWrmXv -OutFile "C:\Windows\temp\RDAgent.msi"
# Download Azure Virtual Desktop agent bootloader
Invoke-WebRequest -URI https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWrxrH -OutFile "C:\Windows\temp\RDBootstrap.msi"
# Install Azure Virtual Desktop agent - use your registration key for REGISTRATIONTOKEN
Start-Process -FilePath msiexec -ArgumentList "/i C:\Windows\Temp\RDAgent.msi REGISTRATIONTOKEN=yourtokengoeshere /qn /norestart /passive /lv* C:\Windows\Temp\rdagentinstall.log"
# Install Azure Virtual Desktop bootstrap agent
Start-Process -FilePath msiexec -ArgumentList "/i C:\Windows\Temp\RDBootstrap.msi /qn /norestart /passive /lv* C:\Windows\Temp\RDBootstrapinstall.log"
If you are using domain-based authentication, try to install Set-AzVMADDomainExtension to join a VM to an Active Directory domain.
If the information is helpful, please click on "Upvote"
If you have any queries, please do let us know, we will help you.