![Azure Virtual Desktop – How to migrate your VM from one Host Pool to another](https://technicalandcloud.com/wp-content/uploads/2023/01/Chiot-Dressage-Tutoriel-YouTube-Miniature-4-800x600.png)
Azure Virtual Desktop – How to migrate your VM from one Host Pool to another
In this article we will see, how to migrate your VM from one Host Pool to another !
I found the solution and I thought why not share it with you ?
We have a VM that is in my Azure Virtual Desktop AVDWUS
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image.png)
We will move it here:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-1.png)
We will connect to the VM in question SVAVDWUS-0:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-2.png)
Go to the services and stop these services:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-3.png)
And uninstall this (it is possible that there are several times these software in this case delete them all) :
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-4.png)
And finally delete the vm from AVD Host Pool:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-18.png)
NOTE:
once you remove the virtual machine from the host, it will leave the domain
For the next connection a local admin account is required (if use domaine)
Remember to delete this folder as well (it is possible that this file is not present it is normal):
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-5.png)
Restart the Virtual Machine.
When restarting, remember to stop these services:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-6.png)
And we download these applications:
Present here: Create Azure Virtual Desktop host pool – Azure | Microsoft Learn
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-7.png)
Launch first the Azure Virtual Desktop Agent:
Click on NEXT
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-8.png)
Click on NEXT:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-9.png)
Need put the registration KEY:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-10.png)
For link the virtual machine an other Host Pool, we need registration key,
Click on the Registration Key:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-11.png)
And copy:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-12.png)
And Past
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-13.png)
Launch Second the Azure Virtual Desktop Agent Loader:
Click on Next:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-14.png)
Click on Next:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-15.png)
Click on Next:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-16.png)
When the installation is finish you can see the vm is available in the good host pool:
![](https://technicalandcloud.com/wp-content/uploads/2023/01/image-19.png)
Conclusion
Now you know how to migrate your VM from one Host Pool to another !