Forum Discussion
Denise Child
Jun 22, 2021Iron Contributor
Add Test VM to existing Host Pool but exclude from autoscale
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 manual...
MawandaH
Jun 22, 2021Brass Contributor
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-app-and-execution-schedule
Regards,
Mawanda
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-app-and-execution-schedule
Regards,
Mawanda
- Denise ChildJun 22, 2021Iron ContributorThank you for the quick response MawandaH. I will confirm and test this out.
- Denise ChildJun 28, 2021Iron ContributorReading 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.