Forum Discussion
How to fix error in AVD with VMs not being added to host pool or AD
Problem
Several users have commented and posted on different networks about the error that appears when adding virtual machines to their host pool, the error is when the VMs want to join to the AD.
The first thing we need to know is that if we add or create a new hostpool (as in my case), the deployment will tell us Azure that everything is correct, that is, as if the machines have joined the AD. Here I show the deployment with everything correct.
Now if we check the status of our hostpool machines, we will see that it tells us the total number of VMs and the option of which one we can connect to and which one we cannot. In my case we see that we can supposedly connect to one and not to the other.
When testing the connection, it fails on both machines. This is normal since if we check the health status of both we see the following.
Basically it tells us that there is a problem joining the domain with the VM.
Solution
Below I show the solution that has worked for me, from different tenants, different subscriptions that had the same problem.
- We are going to go to our subscription and in it, in the setting section, we are going to click on Resource provider as shown in the following image.
- Next we look for the provider "Microsoft.DesktopVirtualization"
- We select it and then click on "unregister"
- Now what we are going to do is re-register, that is, we click on "register"
- Confirm that register is correct again.
- Now we deploy AVD again and add the VMs we need to our Hostpool, and in this case I have chosen Enter ID to do the Join *you can select your preferens)
- Validate de new deployment
As we see here, the deployment has also indicated that it was correct, so we are going to confirm it.
Here we can see that we already have the machines ready for the session.
7 Replies
- VOatMH1265Copper Contributor
Encountering this issue in our subscription just now. Adding new session hosts shows that everything is great, but hosts are not showing up in the host pool. Unregistering resource provider is not an option as it asks to delete all resources beforehand. Simply clicking on Re-register did not help since adding VMs afterwards resulted in the same, no VMs showing up in host pool while deployment had no issues.
- Lammie1155Copper Contributor
We started encountering the same issue earlier this week. There is little to none information to find about this
- VOatMH1265Copper Contributor
Were you able to get a solution or workarounds that do not involve deleting all resources? I need to redeploy some VMs soon and this is a blocker. Going to reach out to our CSP too.
- nickjohnson12Copper Contributor
I am having this exact issue; however I deployed one VM in the beginning that has been working fine and now need to deploy another VM. It won't let me unregister the resource provider with the other VM set up. Would I have to delete it and start from scratch? I really don't want to have to do that if I don't need to.
Hi, sorry for the delay, but I would tell you that it is not necessary.
Great post thanks for sharing🙂