Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 2.12 KB

File metadata and controls

61 lines (46 loc) · 2.12 KB
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

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>