SOLVED

HostPoolName xxxx does not exist ?!

%3CLINGO-SUB%20id%3D%22lingo-sub-1435735%22%20slang%3D%22en-US%22%3EHostPoolName%20xxxx%20does%20not%20exist%20%3F!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1435735%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20set%20WVD%20in%20my%20Azure%20Tenant%2C%20following%20Microsoft%20guides%20line%20by%20line%20and%20throught%20the%20Azure%20host%20pool%20UI%20wizard.%20Everything%20seems%20to%20be%20fine%2C%20permissions%2C%20entitlements%2C%20vms%2C%20etc...%3CBR%20%2F%3Ebut%20once%20I%20login%20in%20the%20app%20or%20the%20url%2C%20it%20promtps%20me%20an%20error%20about%20there%20is%20no%20resources%20assigned.%20Contant%20yout%20IT%20Admin.%3C%2FP%3E%3CP%3ESurprisingly%2C%20get-rdshostpool%20don%C2%B4t%20list%20any%20PoolName%2C%20even%20it%C2%B4s%20clearly%20showed%20on%20the%20azure%20UI%2C%20and%20set-rdshostpool%20creates%20Pools%20which%20never%20shown%20on%20Azure%20UI.%20Since%20every%20action%20was%20made%20for%20the%20same%20TenantName%2C%20what%C2%B4s%20going%20on%20with%20this%3F%3CBR%20%2F%3EAnother%20weird%20behaviour%20is%20about%20the%20properties%20of%20the%20HostPool%2C%20%22Validation%20environment%22%20option%20seems%20to%20be%20in%20a%20undefined%20status%20and%20set%20it%20to%20%22yes%22%20or%20%22no%22%20and%20save%20the%20settings%20succesfully%2C%20have%20no%20effect.%20At%20least%20at%20UI%20level%20that%20settings%20keeps%20showing%20undefined%2C%20like%20if%20no%20change%20were%20ever%20made.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Ffacepalm_40x40.gif%22%20alt%3D%22%3Afacepalm%3A%22%20title%3D%22%3Afacepalm%3A%22%20%2F%3EAny%20idea%2C%20please%3F%20Thanks!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1437775%22%20slang%3D%22en-US%22%3ERe%3A%20HostPoolName%20xxxx%20does%20not%20exist%20%3F!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1437775%22%20slang%3D%22en-US%22%3EAre%20you%20using%20the%20Spring%202020%20update%3F%20Can%20you%20please%20try%20the%20following%20powershell%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fpowershell-module%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fpowershell-module%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1439695%22%20slang%3D%22en-US%22%3ERe%3A%20HostPoolName%20xxxx%20does%20not%20exist%20%3F!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1439695%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20seems%20like%20I%20was%20running%20AzureWVD%20on%202020%20Spring%20realease%20and%20I%20was%20following%20old%20guides%20related%20to%20previous%20version.%3CBR%20%2F%3EThank%20You%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181812%22%20target%3D%22_blank%22%3E%40Soo%20Kuan%20Teo%3C%2FA%3E%26nbsp%3BIt%C2%B4s%20solved%20now%20as%20you%20point%20me%20to%20the%20key.%3CBR%20%2F%3ESteps%20to%20solve%20the%20issue%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1-)%20PowerShell%207%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Freleases%2Fdownload%2Fv7.1.0-preview.3%2FPowerShell-7.1.0-preview.3-win-x64.msi%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Freleases%2Fdownload%2Fv7.1.0-preview.3%2FPowerShell-7.1.0-preview.3-win-x64.msi%3C%2FA%3E%3CBR%20%2F%3E2-)%20Azure%20Powershell%20Module%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fes-es%2Fpowershell%2Fazure%2Finstall-az-ps%3Fview%3Dazps-4.2.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fes-es%2Fpowershell%2Fazure%2Finstall-az-ps%3Fview%3Dazps-4.2.0%3C%2FA%3E%3CBR%20%2F%3E3-)%20Azure%20UI%20Wizard%20HostPool%20Creation%20was%20run%20previously%20with%20success%20including%20vm%20creation%2C%20entitlements%20and%20permissions%2C%20but%20GET-AzWvdRegistrationInfo%20outputs%20no%20data%2C%20just%20an%20empty%20token%20value.%20So%20to%20get%20the%20token%20I%20run%3A%3CBR%20%2F%3ENew-AzWvdRegistrationInfo%20-ResourceGroupName%20%3CRESOURCEGROUPNAME%3E%20-HostPoolName%20%3CHOSTPOOLNAME%3E%20-ExpirationTime%20%24((get-date).ToUniversalTime().AddHours(2).ToString('yyyy-MM-ddTHH%3Amm%3Ass.fffffffZ'))%3CBR%20%2F%3E%3CBR%20%2F%3ENote1%3A%20Once%20step%203%20was%20done.%20My%20published%20WVD%20Desktop%20and%20apps%20resources%20were%20%3CSTRONG%3Efinally%3C%2FSTRONG%3E%20showed%20up!%20(Eureka!)%20But%20fails%20connecting%20to%20them.%20So%20keep%20pushing!%3CBR%20%2F%3ENote2%3A%20I%20Skipped%20the%20role%20assignment%20step%20since%20it%20was%20done%20previously%20on%20Azure%20UI%3CBR%20%2F%3E%3CBR%20%2F%3E5-)%20Token%20to%20a%20VAR%20%26amp%3B%20VAR%20content%20to%20a%20TXT%3CBR%20%2F%3E%24token%20%3D%20Get-AzWvdRegistrationInfo%20-ResourceGroupName%20%3CRESOURCEGROUPNAME%3E%20-HostPoolName%20%3CHOSTPOOLNAME%3E%3CBR%20%2F%3E%24token%20%7C%20select-object%20token%20%7C%20format-list%20%26gt%3B%20C%3A%5CTOKEN.TXT%3C%2FHOSTPOOLNAME%3E%3C%2FRESOURCEGROUPNAME%3E%3C%2FHOSTPOOLNAME%3E%3C%2FRESOURCEGROUPNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E6-)%20RDP%20to%20the%20WVD%20vm.%20Download%20and%20install%20WVD%20Agent%3A%20%3CA%20href%3D%22https%3A%2F%2Fquery.prod.cms.rt.microsoft.com%2Fcms%2Fapi%2Fam%2Fbinary%2FRWrmXv%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fquery.prod.cms.rt.microsoft.com%2Fcms%2Fapi%2Fam%2Fbinary%2FRWrmXv%3C%2FA%3E%3CBR%20%2F%3EPaste%20the%20step%205%20token%20into%20the%20Agent%20Installer%20Wizard%3CBR%20%2F%3EDownload%20and%20install%20WVD%20Agent%20Bootloader%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fquery.prod.cms.rt.microsoft.com%2Fcms%2Fapi%2Fam%2Fbinary%2FRWrxrH%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fquery.prod.cms.rt.microsoft.com%2Fcms%2Fapi%2Fam%2Fbinary%2FRWrxrH%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ENote3%3A%20I%20think%20the%20whole%20steps%20would%20have%20to%20be%20completed%20automatically%20by%20the%20HostPool%20Azure%20UI%20Wizard%2C%20but%20for%20some%20reason%20it%20didn%C2%B4t%20happens%2C%20maybe%20an%20error%20or%20maybe%20it%C2%B4s%20as%20is%20by%20design.%3CBR%20%2F%3EIn%20fact%20running%20appwiz.cpl%20after%20Install%20WVD%20Agent%20with%20the%20token%20on%20my%20wvd%20vm%20shows%204%20entries%20for%20%22Remote%20Desktop%20Services%20Infrastructure%20Agent%22%20with%20build%20numbers%3A%3CBR%20%2F%3E1.0.1.7%3CBR%20%2F%3E1.0.1932.4800%3C%2FP%3E%3CP%3E1.0.1932.6700%3CBR%20%2F%3E1.0.216.900%3CBR%20%2F%3E(Very%20Weird)%3CBR%20%2F%3E%3CBR%20%2F%3ENote4%3A%20The%20Bootloader%20Agent%20didn%C2%B4t%20install%20as%20the%20same%20build%20version%201.0.0.0%20seems%20to%20was%20already%20installed%20on%20that%20machine.%3CBR%20%2F%3EAnyway%2C%20SUCCESS!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have set WVD in my Azure Tenant, following Microsoft guides line by line and throught the Azure host pool UI wizard. Everything seems to be fine, permissions, entitlements, vms, etc...
but once I login in the app or the url, it promtps me an error about there is no resources assigned. Contant yout IT Admin.

Surprisingly, get-rdshostpool don´t list any PoolName, even it´s clearly showed on the azure UI, and set-rdshostpool creates Pools which never shown on Azure UI. Since every action was made for the same TenantName, what´s going on with this?
Another weird behaviour is about the properties of the HostPool, "Validation environment" option seems to be in a undefined status and set it to "yes" or "no" and save the settings succesfully, have no effect. At least at UI level that settings keeps showing undefined, like if no change were ever made.

:facepalm:Any idea, please? Thanks!



2 Replies
best response confirmed by Lebrack (Occasional Contributor)
Solution
Are you using the Spring 2020 update? Can you please try the following powershell:
https://docs.microsoft.com/en-us/azure/virtual-desktop/powershell-module

So seems like I was running AzureWVD on 2020 Spring realease and I was following old guides related to previous version.
Thank You @Soo Kuan Teo It´s solved now as you point me to the key.
Steps to solve the issue:

1-) PowerShell 7
https://github.com/PowerShell/PowerShell/releases/download/v7.1.0-preview.3/PowerShell-7.1.0-preview...
2-) Azure Powershell Module
https://docs.microsoft.com/es-es/powershell/azure/install-az-ps?view=azps-4.2.0
3-) Azure UI Wizard HostPool Creation was run previously with success including vm creation, entitlements and permissions, but GET-AzWvdRegistrationInfo outputs no data, just an empty token value. So to get the token I run:
New-AzWvdRegistrationInfo -ResourceGroupName <resourcegroupname> -HostPoolName <hostpoolname> -ExpirationTime $((get-date).ToUniversalTime().AddHours(2).ToString('yyyy-MM-ddTHH:mm:ss.fffffffZ'))

Note1: Once step 3 was done. My published WVD Desktop and apps resources were finally showed up! (Eureka!) But fails connecting to them. So keep pushing!
Note2: I Skipped the role assignment step since it was done previously on Azure UI

5-) Token to a VAR & VAR content to a TXT
$token = Get-AzWvdRegistrationInfo -ResourceGroupName <resourcegroupname> -HostPoolName <hostpoolname>
$token | select-object token | format-list > C:\TOKEN.TXT

 

6-) RDP to the WVD vm. Download and install WVD Agent: https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWrmXv
Paste the step 5 token into the Agent Installer Wizard
Download and install WVD Agent Bootloader:
https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWrxrH

Note3: I think the whole steps would have to be completed automatically by the HostPool Azure UI Wizard, but for some reason it didn´t happens, maybe an error or maybe it´s as is by design.
In fact running appwiz.cpl after Install WVD Agent with the token on my wvd vm shows 4 entries for "Remote Desktop Services Infrastructure Agent" with build numbers:
1.0.1.7
1.0.1932.4800

1.0.1932.6700
1.0.216.900
(Very Weird)

Note4: The Bootloader Agent didn´t install as the same build version 1.0.0.0 seems to was already installed on that machine.
Anyway, SUCCESS!