Migrate to Innovate Summit:
Learn how migrating and modernizing to Azure can boost your business's performance, resilience, and security, enabling you to fully embrace AI.Register now
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
All host pools created in Azure Virtual Desktop are attached to session hosts and application groups. To delete a host pool, you need to delete its associated application groups and session hosts. Deleting an application group is fairly simple, but deleting a session host is more complicated. When you delete a session host, you need to make sure it doesn't have any active user sessions. All user sessions on the session host should be logged off to prevent users from losing data.
Select Host pools in the menu on the left side of the page, then select the name of the host pool you want to delete.
On the menu on the left side of the page, select Application groups.
Select all application groups in the host pool you're going to delete, then select Remove.
Once you've removed the application groups, go to the menu on the left side of the page and select Overview.
Select Remove.
If there are session hosts in the host pool you're deleting, you'll see a message asking for your permission to continue. Select Yes.
The Azure portal will now remove all session hosts and delete the host pool. The VMs related to the session host won't be deleted and will remain in your subscription.
To delete a host pool using PowerShell, you first need to delete all application groups in the host pool. To delete all application groups, run the following PowerShell cmdlet:
This cmdlet removes all existing user sessions on the host pool's session host. It also unregisters the session host from the host pool. Any related virtual machines (VMs) will still exist within your subscription.
To delete a host pool using the Azure CLI, you first need to delete all application groups in the host pool.
az desktopvirtualization hostpool delete --forcetrue--name"MyHostPool"--resource-group"MyResourceGroup"
This deletion removes all existing user sessions on the host pool's session host. It also unregisters the session host from the host pool. Any related virtual machines (VMs) will still exist within your subscription.
Next steps
To learn how to create a host pool, check out these articles: