Delete Azure Virtual Desktop (classic)

This article describes how to delete Azure Virtual Desktop (classic).

Warning

When you delete resources as described in this article, these actions are irreversible.

Prerequisites

Before you begin, make sure you have the following things ready:

Delete Azure Virtual Desktop (classic)

  1. Sign into Azure Virtual Desktop (classic) in your PowerShell window:

    Add-RdsAccount -DeploymentUrl https://rdbroker.wvd.microsoft.com
    
  2. Sign in to Azure Resource Manager:

    Login-AzAccount
    
  3. If you have multiple subscriptions, select the one you want to delete your resources to with this cmdlet:

    Select-AzSubscription -Subscriptionid <subID>
    
  4. 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>
    
  5. 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>