Forum Discussion
Azure Virtual Desktop (AVD) | Scaling plans and Autoscaling
- Oct 19, 2021
Please verify documentation here: https://docs.microsoft.com/en-us/azure/virtual-desktop/autoscale-scaling-plan., which came with slight delay. When searching the table of contents for autoscale you will find additional articles how to use diagnostics and FAQ
Ensure your review limitations and ensure you have the custom RBAC role set-up :)!
What i do see in the logs is that sessionhosts that are turned in Drainmode plus the exclusion tag set still being counted with minimum host percentage. It sounds to me that is not right. VM's with the exlusion tag should not be calculated within the host percentage. I say this because when we do create a new release we will have double the amount of machines before we cleanup the old ones. Maybe I am not sure i get the way you have to put the Tag on the VM. My tag is called excludescaling and i put as value Y. In the schedule i called the exclusiontag excludescaling. Is this the way?
- Seneca_FriendNov 05, 2021
Microsoft
Hi robbie64,
Thank you so much for your comment. Could you please provide a bit more details from your example so that we can look into what is happening. More specifically, it would be helpful if you could provide screenshots of where you have placed the tag on the VM and what you are seeing in the logs, plus your subscription ID, host pool, resource ID, and timestamps (when you observed this happening). (Feel free to send me a private message with this sensitive information.) Thank you so much!
- robbie64Nov 06, 2021Copper Contributor
Seneca_Friend I have a total of 8 hosts in the hostpool. 4 hosts are a new release the other 4 hosts are in drain mode and have the exclusion tag and powered off, ready to be deleted. My scalingplan says a minimum of 50% hosts should be active. In my opinion that should then be 2 hosts minumum, but the plan powers them all on (the 4 newly created). The schedule should turn 2 off since my amount off sessions is below the threshold but the log says the it keeps them on otherwise it would go below the 50% of active hosts. In my believe the 50% should be calculated from 4 hosts and not 8.
Here is a screenshot with the tag. If u need more info let me know, can sent te log through private message if needed.
Tag on VM:
Setting on Scaling plan:
- Seneca_FriendNov 08, 2021
Microsoft
Hi robbie64,
Thanks for the screenshots. Please send me the subscription ID and logs so I can look into this.