SOLVED

how do you delete a wvd fall 2019 cmdlet created tenant name and template created hostpool

%3CLINGO-SUB%20id%3D%22lingo-sub-1463790%22%20slang%3D%22en-US%22%3Ehow%20do%20you%20delete%20a%20wvd%20fall%202019%20cmdlet%20created%20tenant%20name%20and%20template%20created%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463790%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20do%20you%20delete%20a%20wvd%20fall%202019%20cmdlet%20created%20tenant%20name%20and%20template%20created%20hostpool%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20deleting%20all%20the%20resources%20i%20could%20see%20in%20azure%20portal%20resource%20group%20associated%20with%20wvd%20fall%202019%20template%20created%20hostpool%20i%20find%20that%20the%20tenant%20name%20and%20its%20child%20hostpool%20still%20come%20up%20in%20wvd%20remote%20desktop%20client%20subscription%20feed.%26nbsp%3B%20This%20suggests%20to%20me%20they%20are%20still%20provisioned%20but%20not%20directly%20viewable%20and%20able%20to%20be%20deleted%20from%20azure%20portal%20UI.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20i%20create%20a%20wvd%20spring%202020%20hostpool%20deployment%20i%20see%20that%20it%20uses%20a%20default%20application%20group%20Workspace%20instead%20of%20a%20Tenant%20and%20child%20session%20type%20hostpools%20both%20of%20which%20can%20be%20viewed%20and%20deleted%20from%20azure%20portal%20UI.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1468848%22%20slang%3D%22en-US%22%3ERe%3A%20how%20do%20you%20delete%20a%20wvd%20fall%202019%20cmdlet%20created%20tenant%20name%20and%20template%20created%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1468848%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F207167%22%20target%3D%22_blank%22%3E%40Rob%20Ob%3C%2FA%3E%3A%20As%20documentation%20indicates%20Fall%20release%20cannot%20be%20managed%20with%20the%20new%20Azure%20Portal%20presence%20as.%20Use%20this%20PowerShell%20cmdlet%20to%20delete%20your%20tenant%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2Fremove-rdstenant%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2Fremove-rdstenant%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDon't%20forget%20to%20sign%20into%20your%20deployment%20with%20your%20admin%20account%20first%3A%26nbsp%3B%3CSPAN%20class%3D%22hljs-pscommand%22%3EAdd-RdsAccount%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-DeploymentUrl%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-string%22%3E%22%3CA%20href%3D%22https%3A%2F%2Frdbroker.wvd.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Frdbroker.wvd.microsoft.com%3C%2FA%3E%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMore%20info%3A%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fwvdgetstarted%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fwvdgetstarted%3C%2FA%3E%26nbsp%3B%26gt%3B%20select%20Fall%2FSpring%20release%20section%20to%20land%20on%20the%20proper%20documentation%20path.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1468904%22%20slang%3D%22en-US%22%3ERe%3A%20how%20do%20you%20delete%20a%20wvd%20fall%202019%20cmdlet%20created%20tenant%20name%20and%20template%20created%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1468904%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F139744%22%20target%3D%22_blank%22%3E%40Eva%20Seydl%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20followup%20on%20this%2C%20seems%20i%20have%20an%20issue%20getting%20rid%20of%20sessionhosts%20not%20exposed%20in%20portal%20first%2C%20e.g.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eexecuting%20remove-rdstenant%20complains%20about%20existing%20hostpools%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3ERemove-RdsTenant%20-Name%20%22My%20Wvd%20Tenant%22%0ARemove-RdsTenant%20%3A%20TenantName%3A%20'My%20Wvd%20Tenant'%20cannot%20be%20removed%20because%20there%20are%20HostPools%20associated%20with%20it.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eexecuting%20remove-rdshostpool%20complains%20about%20existing%20sessionhosts%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3ERemove-RdsHostPool%20-TenantName%20%22My%20Wvd%20Tenant%22%20-Name%20%22wvd-hostpool%22%0ARemove-RdsHostPool%20%3A%20The%20HostPoolName%20wvd-hostpool%20could%20not%20be%20deleted%20because%20it%20still%20has%20SessionHosts%20associated%20with%20it.%20Please%20remove%20all%20SessionHosts%20from%20the%20SessionHostPool%20and%20retry%20the%20operation.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhere%20i%20was%20able%20to%20remove%20existing%20sessionhosts%20by%20executing%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3ERemove-RdsSessionHost%20-TenantName%20%22My%20Wvd%20Tenant%22%20-HostPoolName%20%22wvd-hostpool%22%20-Name%20wvd-vm-0.mydomain.onmicrosoft.com%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eafter%20that%20executing%20remove-rdshostpool%20complained%20about%20existing%20applicationgroups%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3ERemove-RdsHostPool%20-TenantName%20%22My%20Wvd%20Tenant%22%20-Name%20%22wvd-hostpool%22%0ARemove-RdsHostPool%20%3A%20The%20HostPoolName%20wvd-hostpool%20could%20not%20be%20deleted%20because%20it%20still%20has%20ApplicationGroups%20associated%20with%20it.%20Please%20remove%20all%20ApplicationGroups%20from%20the%20SessionHostPool%20and%20retry%20the%20operation.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhich%20i%20was%20able%20to%20remove%20using%20.%20.%20.%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3ERemove-RdsAppGroup%20-TenantName%20%22My%20Wvd%20Tenant%22%20-HostPoolName%20%22wvd-hostpool%22%20-Name%20%22Desktop%20Application%20Group%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%20I%20was%20able%20to%20walk%20back%20through%26nbsp%3BRemove-RdsHostPool%20and%20then%26nbsp%3BRemove-RdsTenant%20cmdlets%20to%20clear%20everything%20out%20from%20fall%202019%20template%20deployed%20setups.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20the%20spring%202020%20wvd%20template%20deployed%20setups%20is%20everything%20that%20gets%20provisioned%20also%20removable%20from%20the%20portal%20vs%20having%20to%20walk%20things%20back%20using%20a%20bunch%20of%20powershell%20cmdlets%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

How do you delete a wvd fall 2019 cmdlet created tenant name and template created hostpool?  

 

After deleting all the resources i could see in azure portal resource group associated with wvd fall 2019 template created hostpool i find that the tenant name and its child hostpool still come up in wvd remote desktop client subscription feed.  This suggests to me they are still provisioned but not directly viewable and able to be deleted from azure portal UI.

 

When i create a wvd spring 2020 hostpool deployment i see that it uses a default application group Workspace instead of a Tenant and child session type hostpools both of which can be viewed and deleted from azure portal UI.

2 Replies
best response confirmed by Eva Seydl (Microsoft)
Solution

@Rob Ob: As documentation indicates Fall release cannot be managed with the new Azure Portal presence as. Use this PowerShell cmdlet to delete your tenant: https://docs.microsoft.com/en-us/powershell/module/windowsvirtualdesktop/remove-rdstenant

 

Don't forget to sign into your deployment with your admin account first: Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"

 

More info: https://aka.ms/wvdgetstarted > select Fall/Spring release section to land on the proper documentation path.

 

 

@Eva Seydl thanks for the followup on this, seems i have an issue getting rid of sessionhosts not exposed in portal first, e.g. 

 

executing remove-rdstenant complains about existing hostpools

 

Remove-RdsTenant -Name "My Wvd Tenant"
Remove-RdsTenant : TenantName: 'My Wvd Tenant' cannot be removed because there are HostPools associated with it.

 

 

executing remove-rdshostpool complains about existing sessionhosts

 

Remove-RdsHostPool -TenantName "My Wvd Tenant" -Name "wvd-hostpool"
Remove-RdsHostPool : The HostPoolName wvd-hostpool could not be deleted because it still has SessionHosts associated with it. Please remove all SessionHosts from the SessionHostPool and retry the operation.

 

 

where i was able to remove existing sessionhosts by executing

 

Remove-RdsSessionHost -TenantName "My Wvd Tenant" -HostPoolName "wvd-hostpool" -Name wvd-vm-0.mydomain.onmicrosoft.com

 

 

after that executing remove-rdshostpool complained about existing applicationgroups 

 

Remove-RdsHostPool -TenantName "My Wvd Tenant" -Name "wvd-hostpool"
Remove-RdsHostPool : The HostPoolName wvd-hostpool could not be deleted because it still has ApplicationGroups associated with it. Please remove all ApplicationGroups from the SessionHostPool and retry the operation.

 

 

which i was able to remove using . . . 

Remove-RdsAppGroup -TenantName "My Wvd Tenant" -HostPoolName "wvd-hostpool" -Name "Desktop Application Group"

 

After that I was able to walk back through Remove-RdsHostPool and then Remove-RdsTenant cmdlets to clear everything out from fall 2019 template deployed setups.

 

With the spring 2020 wvd template deployed setups is everything that gets provisioned also removable from the portal vs having to walk things back using a bunch of powershell cmdlets?