Extending/Addition of more VDIs in existing hostpool

%3CLINGO-SUB%20id%3D%22lingo-sub-676975%22%20slang%3D%22en-US%22%3EExtending%2FAddition%20of%20more%20VDIs%20in%20existing%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-676975%22%20slang%3D%22en-US%22%3E%3CP%3EAfter%20deploying%20a%20hostpool%2C%20can%20we%20extend%20or%20add%20more%20VDIs%20in%20that%20pool%20later%20on%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20a%20Personal%2FPool%20based%20hostpool%2C%20is%20there%20an%20auto%20extension%20available%20based%20on%20demand%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJasmer%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-682020%22%20slang%3D%22en-US%22%3ERe%3A%20Extending%2FAddition%20of%20more%20VDIs%20in%20existing%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-682020%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F341882%22%20target%3D%22_blank%22%3E%40Jasmer%3C%2FA%3E%26nbsp%3Byou%20would%20just%20deploy%20a%20new%20Windows%20Virtual%20Desktop%20like%20you%20did%20the%20original%20and%20add%20it%20to%20the%20same%20host%20pool.%20it%20will%20be%20available%20to%20all%20users%20that%20are%20already%20in%20that%20host%20pool.%20For%20example%20I%20have%20created%20three%20different%20Windows%20Virtual%20Desktops%20using%20the%20Azure%20Portal%2C%20each%20one%20of%20them%20is%20in%20the%20same%20host%20pool%20because%20at%20the%20start%20of%20the%20tutorial%2C%20I%20simply%20typed%20the%20same%20host%20pool%20name%20that%20I%20created%20in%20PowerShell.%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F341882%22%20target%3D%22_blank%22%3E%40Jasmer%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EAfter%20deploying%20a%20hostpool%2C%20can%20we%20extend%20or%20add%20more%20VDIs%20in%20that%20pool%20later%20on%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20a%20Personal%2FPool%20based%20hostpool%2C%20is%20there%20an%20auto%20extension%20available%20based%20on%20demand%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJasmer%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-682212%22%20slang%3D%22en-US%22%3ERe%3A%20Extending%2FAddition%20of%20more%20VDIs%20in%20existing%20hostpool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-682212%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F341882%22%20target%3D%22_blank%22%3E%40Jasmer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EAfter%20deploying%20a%20hostpool%2C%20can%20we%20extend%20or%20add%20more%20VDIs%20in%20that%20pool%20later%20on%3F%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EI%20could%20achieve%20that%20in%20the%20following%20way.%3CBR%20%2F%3E%3CSTRONG%3EAdd%20Session%20Host%3C%2FSTRONG%3E%3A%20Install%20WVD%20Agent%20and%20WVD%20Agent%20Boot%20Loader%20on%20the%20target%20VM.%3CBR%20%2F%3EIn%20addition%2C%20Token%20of%20HostPool%20is%20required%20at%20the%20time%20of%20Boot%20Loader%20installation.%3C%2FP%3E%3CP%3EReference%3A%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%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%3C%2FA%3E%3C%2FP%3E%3CPRE%3E%23%20Get%20a%20Token%3CBR%20%2F%3E%24RegInfo%20%3D%20Export-RdsRegistrationInfo%20-TenantName%20%3CTENANTNAME%3E%20-HostPoolName%20%3CHOSTPOOLNAME%3E%3CBR%20%2F%3E%24isExpire%20%3D%20%24RegInfo.ExpirationTime%20-lt%20(Get-Date)%3CBR%20%2F%3Eif(%24isExPire)%7B%3CBR%20%2F%3ERemove-RdsRegistrationInfo%20-TenantName%20%3CTENANTNAME%3E%20-HostPoolName%20%3CHOSTPOOLNAME%3E%3CBR%20%2F%3E%24RegInfo%20%3D%20New-RdsRegistrationInfo%20-TenantName%20%3CTENANTNAME%3E%20-HostPoolName%20%3CHOSTPOOLNAME%3E%20-ExpirationHours%20%3CNUMBER%20of%3D%22%22%20hours%3D%22%22%3E%3CBR%20%2F%3E%7D%3C%2FNUMBER%3E%3C%2FHOSTPOOLNAME%3E%3C%2FTENANTNAME%3E%3C%2FHOSTPOOLNAME%3E%3C%2FTENANTNAME%3E%3C%2FHOSTPOOLNAME%3E%3C%2FTENANTNAME%3E%3C%2FPRE%3E%3CP%3E%3CSTRONG%3EExtend%20Session%20Host%3C%2FSTRONG%3E%3AChange%20the%20size%20in%20Azure%20Portal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EIn%20a%20Personal%2FPool%20based%20hostpool%2C%20is%20there%20an%20auto%20extension%20available%20based%20on%20demand%3F%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EIt%20is%20described%20in%20the%20MS%20document.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-scaling-script%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-scaling-script%3C%2FA%3E%3C%2FP%3E%3CP%3ECurrently%2C%20settings%20can%20not%20be%20made%20in%20Portal%2C%20and%20it%20seems%20to%20incorporate%20scripts%20into%20the%20task%20scheduler%20of%20session%20host.%3CBR%20%2F%3EYou%20can%2C%20of%20course%2C%20use%20Azure%20Automation(Hybrid%20Runbook%20Worker)%20instead%20of%20the%20task%20scheduler%2C%3CBR%20%2F%3EThere%20is%20no%20big%20difference%20between%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

After deploying a hostpool, can we extend or add more VDIs in that pool later on?

 

In a Personal/Pool based hostpool, is there an auto extension available based on demand?

 

 

Thanks,

Jasmer

 

 

2 Replies
Highlighted

@Jasmer you would just deploy a new Windows Virtual Desktop like you did the original and add it to the same host pool. it will be available to all users that are already in that host pool. For example I have created three different Windows Virtual Desktops using the Azure Portal, each one of them is in the same host pool because at the start of the tutorial, I simply typed the same host pool name that I created in PowerShell.


@Jasmer wrote:

After deploying a hostpool, can we extend or add more VDIs in that pool later on?

 

In a Personal/Pool based hostpool, is there an auto extension available based on demand?

 

 

Thanks,

Jasmer

 

 


 

Highlighted

@Jasmer 

After deploying a hostpool, can we extend or add more VDIs in that pool later on?

I could achieve that in the following way.
Add Session Host: Install WVD Agent and WVD Agent Boot Loader on the target VM.
In addition, Token of HostPool is required at the time of Boot Loader installation.

Reference: https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell

# Get a Token
$RegInfo = Export-RdsRegistrationInfo -TenantName <tenantname> -HostPoolName <hostpoolname>
$isExpire = $RegInfo.ExpirationTime -lt (Get-Date)
if($isExPire){
Remove-RdsRegistrationInfo -TenantName <tenantname> -HostPoolName <hostpoolname>
$RegInfo = New-RdsRegistrationInfo -TenantName <tenantname> -HostPoolName <hostpoolname> -ExpirationHours <number of hours>
}

Extend Session Host:Change the size in Azure Portal.

 

 

In a Personal/Pool based hostpool, is there an auto extension available based on demand?

It is described in the MS document.
https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script

Currently, settings can not be made in Portal, and it seems to incorporate scripts into the task scheduler of session host.
You can, of course, use Azure Automation(Hybrid Runbook Worker) instead of the task scheduler,
There is no big difference between them.