Home

Is there has a solution to setting a dynamic Host pool load-balancing methods

%3CLINGO-SUB%20id%3D%22lingo-sub-1080793%22%20slang%3D%22en-US%22%3EIs%20there%20has%20a%20solution%20to%20setting%20a%20dynamic%20Host%20pool%20load-balancing%20methods%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1080793%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20want%20to%20change%20the%20host%20pool%20load-balancing%20methods%20from%20Breadth-first%20to%20Depth-first%20at%205%20PM%20~8%20AM%20every%20day.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20there%20someone%20who%20knows%20something%20about%20this%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1083629%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20has%20a%20solution%20to%20setting%20a%20dynamic%20Host%20pool%20load-balancing%20methods%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083629%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F449722%22%20target%3D%22_blank%22%3E%40null_null%3C%2FA%3E%26nbsp%3B%3A%20Depending%20on%20the%20complexity%20of%20the%20solution%2C%20you%20may%20be%20able%20to%20start%20with%20the%20scaling%20script%20described%20here%20in%20the%20Windows%20Virtual%20Desktop%20docs%3A%26nbsp%3B%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%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-desktop%2Fset-up-scaling-script%3C%2FA%3E%26nbsp%3B.%20This%20turns%20on%2Foff%20VMs%20as%20they're%20being%20used%20throughout%20the%20day.%20To%20use%20this%20for%20your%20scenario%20of%20switching%20load%20balancer%20type%2C%20you%20can%20add%20extra%20logic%20to%20the%20peak%20load%20balancing%20parameters%20to%20also%20switch%20the%20load%20balancer%20type%20once%20it%20hits%20one%20of%20those%20defined%20times%20(5%20pm%20and%208%20am).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOtherwise%2C%20if%20it's%20extremely%20simple%20and%20you%20only%20need%20to%20switch%20the%20type%20(and%20not%20do%20further%20scaling)%2C%20you%20could%20setup%20an%20Azure%20Runbook.%20You%20would%20need%20to%20import%20the%20PowerShell%20module%2C%20then%20follow%20the%20steps%20here%20to%20do%20the%20PowerShell%20steps%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fautomation%2Fautomation-quickstart-create-runbook%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fautomation%2Fautomation-quickstart-create-runbook%3C%2FA%3E%26nbsp%3B.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20that%20gets%20you%20started%20in%20the%20right%20direction!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1092060%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20has%20a%20solution%20to%20setting%20a%20dynamic%20Host%20pool%20load-balancing%20methods%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1092060%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305776%22%20target%3D%22_blank%22%3E%40christianmontoya%3C%2FA%3EThanks%20so%20much.%20It%20works%20well%20with%20Azure%20Automation.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I want to change the host pool load-balancing methods from Breadth-first to Depth-first at 5 PM ~8 AM every day.

Is there someone who knows something about this?

2 Replies
Highlighted

@null_null : Depending on the complexity of the solution, you may be able to start with the scaling script described here in the Windows Virtual Desktop docs: https://docs.microsoft.com/azure/virtual-desktop/set-up-scaling-script . This turns on/off VMs as they're being used throughout the day. To use this for your scenario of switching load balancer type, you can add extra logic to the peak load balancing parameters to also switch the load balancer type once it hits one of those defined times (5 pm and 8 am).

 

Otherwise, if it's extremely simple and you only need to switch the type (and not do further scaling), you could setup an Azure Runbook. You would need to import the PowerShell module, then follow the steps here to do the PowerShell steps: https://docs.microsoft.com/azure/automation/automation-quickstart-create-runbook .

 

Hope that gets you started in the right direction!

Highlighted

@christianmontoyaThanks so much. It works well with Azure Automation.

Related Conversations