Spring 2020 Update - Registration Keys in Host pools

%3CLINGO-SUB%20id%3D%22lingo-sub-1390408%22%20slang%3D%22en-US%22%3ESpring%202020%20Update%20-%20Registration%20Keys%20in%20Host%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1390408%22%20slang%3D%22en-US%22%3E%3CP%3EAnother%20issue%20to%20the%20list.%20If%20trying%20to%20add%20a%20session%20host%20to%20the%20host%20pool%2C%20it%20throws%20a%20warning%20saying%20there%20are%20no%20registration%20keys.%20If%20you%20then%20try%20to%20create%20one%2C%20it%20says%20it%20succeeded%20but%20the%20key%20is%20never%20there%20and%20there%20is%20no%20way%20to%20add%20more%20session%20hosts%20to%20the%20host%20pool.%20I%20cannot%20understand%20why%20a%20registration%20key%20is%20not%20created%20when%20the%20host%20pool%20is%20provisioned%2C%20what%20would%20avoid%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECR%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392376%22%20slang%3D%22en-US%22%3ERe%3A%20Spring%202020%20Update%20-%20Registration%20Keys%20in%20Host%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392376%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F195816%22%20target%3D%22_blank%22%3E%40Cl%C3%A1udio%20Rodrigues%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%C2%B4ve%20experienced%20the%20same!%20As%20a%20work%20around%20here%20is%20my%20tip%20for%20you%20to%20not%20be%20blocked%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Log%20into%20your%20Azure%20tenant%20via%20Admin%20credentials%3CBR%20%2F%3EConnect-AzAccount%3C%2FP%3E%3CP%3E2.%20Create%20the%20Registration%20Info%20and%20set%20expiration%20to%202%20hours%20(you%20can%20adapt%20this%20to%20your%20needs%20also)%3C%2FP%3E%3CP%3ENew-AzWvdRegistrationInfo%20-ResourceGroupName%20%25RGyourHostPool%25%20-HostPoolName%20%25HostPoolName%25%20-ExpirationTime%20%24((get-date).ToUniversalTime().AddHours(2).ToString('yyyy-MM-ddTHH%3Amm%3Ass.fffffffZ'))%7D%3C%2FP%3E%3CP%3E3.%20Retreive%20the%20Registration%20Key%3C%2FP%3E%3CP%3EGet-AzWvdRegistrationInfo%20-ResourceGroupName%20%25RGyourHostPool%25%20-HostPoolName%20%25HostPoolName%25%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20should%20unblock%20your%20issue!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3EPatrick%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395471%22%20slang%3D%22en-US%22%3ERe%3A%20Spring%202020%20Update%20-%20Registration%20Keys%20in%20Host%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395471%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F448842%22%20target%3D%22_blank%22%3E%40patrickkoehler%3C%2FA%3E%26nbsp%3Band%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F195816%22%20target%3D%22_blank%22%3E%40Cl%C3%A1udio%20Rodrigues%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20had%20the%20same%20message.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOne%20thing%20to%20add%2C%20the%20token's%20expiration%20date%20can%20be%20no%20less%20than%20an%20hour%20and%20no%20more%20than%20one%20month.%20If%20you%20try%20to%20set%20it%20for%20more%20than%20a%20month%20it%20will%20not%20create%20the%20token.%20Details%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ECheers!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Another issue to the list. If trying to add a session host to the host pool, it throws a warning saying there are no registration keys. If you then try to create one, it says it succeeded but the key is never there and there is no way to add more session hosts to the host pool. I cannot understand why a registration key is not created when the host pool is provisioned, what would avoid this issue.

 

CR

2 Replies

Hi @Cláudio Rodrigues,

 

I´ve experienced the same! As a work around here is my tip for you to not be blocked:

 

1. Log into your Azure tenant via Admin credentials
Connect-AzAccount

2. Create the Registration Info and set expiration to 2 hours (you can adapt this to your needs also)

New-AzWvdRegistrationInfo -ResourceGroupName %RGyourHostPool% -HostPoolName %HostPoolName% -ExpirationTime $((get-date).ToUniversalTime().AddHours(2).ToString('yyyy-MM-ddTHH:mm:ss.fffffffZ'))}

3. Retreive the Registration Key

Get-AzWvdRegistrationInfo -ResourceGroupName %RGyourHostPool% -HostPoolName %HostPoolName%

 

This should unblock your issue!

 

Cheers,

Patrick

 

Hi @patrickkoehler and @Cláudio Rodrigues,

 

I also had the same message. 

 

One thing to add, the token's expiration date can be no less than an hour and no more than one month. If you try to set it for more than a month it will not create the token. Details here https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell

 

Cheers!