title | description | author | ms.topic | ms.date | ms.author | manager |
---|---|---|---|---|---|---|
Delete Azure Virtual Desktop (classic) - Azure |
How to clean up Azure Virtual Desktop (classic) when it is no longer used. |
jensheerin |
how-to |
11/22/2021 |
jensheerin |
annathan |
This article describes how to delete Azure Virtual Desktop (classic).
Warning
When you delete resources as described in this article, these actions are irreversible.
Before you begin, make sure you have the following things ready:
-
A global administrator account within the Microsoft Entra tenant
-
Download and import the Azure Virtual Desktop module to use in your PowerShell session if you haven't already
-
Sign into Azure Virtual Desktop (classic) in your PowerShell window:
Add-RdsAccount -DeploymentUrl https://rdbroker.wvd.microsoft.com
-
Sign in to Azure Resource Manager:
Login-AzAccount
-
If you have multiple subscriptions, select the one you want to delete your resources to with this cmdlet:
Select-AzSubscription -Subscriptionid <subID>
-
Run get commands for locating RDS resources
Get-RDSTenant Get-RDSHostPool -TenantName <tenantname> Get-RDSSessionHost -TenantName <tenantname> -HostPoolName <hostpoolname> Get-RDSAppGroup -TenantName <tenantname> -HostPoolName <hostpoolname> Get-RDSRemoteApp -TenantName <tenantname> -HostPoolName <hostpoolname> -AppGroupName <appgroupname>
-
The next steps remove the classic version of Azure Virtual Desktop.
Remove-RDSRemoteApp -TenantName <tenantname> -HostPoolName <hostpoolname> -AppGroupName <appgroupname> -name 'name' Remove-RDSAppGroup -TenantName <tenantname> -HostPoolName <hostpoolname> -Name <appgroupname> Remove-RDSSessionHost -TenantName <tenantname> -HostPoolName <hostpoolname> -Name <sessionhostname> Remove-RDSHostPool -TenantName <tenantname> -Name <hostpoolname> Remove-RDSTenant -Name <tenantname>