Add Test VM to existing Host Pool but exclude from autoscale

%3CLINGO-SUB%20id%3D%22lingo-sub-2469423%22%20slang%3D%22en-US%22%3EAdd%20Test%20VM%20to%20existing%20Host%20Pool%20but%20exclude%20from%20autoscale%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2469423%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20way%20to%20add%20a%20Test%20VM%20in%20the%20existing%20host%20pool%2C%20have%20it%20use%20the%20same%20image%20as%20the%20Prod%20VM%20and%20exclude%20it%20from%20the%20auto%20scale%20settings%20so%20that%20it%20can%20be%20brought%20up%20and%20down%20as%20needed%20manually%20in%20Azure%3F%3C%2FP%3E%3CP%3EThis%20would%20be%20the%20equivalent%20to%20having%20a%20Test%20Citrix%20Server%20in%20the%20same%20Farm%20and%20only%20allowing%20certain%20Users%20to%20connect.%3C%2FP%3E%3CP%3EOur%20Dev%20team%20is%20wanting%20to%20test%20new%20versions%20of%20an%20application%20before%20deploying%20to%20Production%20and%20troubleshoot%20an%20existing%20app%20outside%20of%20Production%20environment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOtherwise%20we%20have%20to%20create%20a%20whole%20new%20Host%20Pool%20and%20use%20that%20image%20for%20just%20one%20machine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EDenise%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2469423%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAVD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETest%20VM%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2470713%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20Test%20VM%20to%20existing%20Host%20Pool%20but%20exclude%20from%20autoscale%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2470713%22%20slang%3D%22en-US%22%3EHi%20Denise%2C%3CBR%20%2F%3EThis%20can%20be%20achieved%20by%20modifying%20the%20auto%20scale%20Logic%20app%20for%20your%20AVD%20deployment.%3CBR%20%2F%3EYou%20need%20to%20apply%20a%20maintenance%20tag%20on%20the%20VM%20that%20you%20want%20to%20omit%20from%20the%20autoscale%20app.%3CBR%20%2F%3E%3CBR%20%2F%3E%24MaintenanceTagName%20%3D%20Read-Host%20-Prompt%20%22Enter%20the%20name%20of%20the%20Tag%20associated%20with%20VMs%20you%20don't%20want%20to%20be%20managed%20by%20this%20scaling%20tool%22%3CBR%20%2F%3E%3CBR%20%2F%3ERefer%20to%20this%20article%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-scaling-script%23create-the-azure-logic-app-and-execution-schedule%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-scaling-script%23create-the-azure-logic-app-and-execution-schedule%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%3CBR%20%2F%3EMawanda%3C%2FLINGO-BODY%3E
Contributor

Is there a way to add a Test VM in the existing host pool, have it use the same image as the Prod VM and exclude it from the auto scale settings so that it can be brought up and down as needed manually in Azure?

This would be the equivalent to having a Test Citrix Server in the same Farm and only allowing certain Users to connect.

Our Dev team is wanting to test new versions of an application before deploying to Production and troubleshoot an existing app outside of Production environment.

 

Otherwise we have to create a whole new Host Pool and use that image for just one machine.

 

Thanks,

Denise

3 Replies
Hi Denise,
This can be achieved by modifying the auto scale Logic app for your AVD deployment.
You need to apply a maintenance tag on the VM that you want to omit from the autoscale app.

$MaintenanceTagName = Read-Host -Prompt "Enter the name of the Tag associated with VMs you don't want to be managed by this scaling tool"

Refer to this article: https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script#create-the-azure-logic-...

Regards,
Mawanda
Thank you for the quick response @MawandaH. I will confirm and test this out.
Reading the article by using a maintenance tag is like putting the host in Drain Mode. I want to be able to publish applications to just one machine and specific users and not have it use autoscale. Is that possible in the same Pool? It seems like I would have to create just one machine in a new Pool to achieve this solution.