10-26-2020 06:31 AM
10-26-2020 06:31 AM
I have a WVD classic environment and I need to implement the autoscaling feature for it.
I've checked MS documentation and found the Autoscale automation which implements Automation Accounts and Logic apps to run during peak hours, check the amount of sessions and spin more VMs if necessary. Then, during off hours, it shut downs VMs to a minimum.
This is good...but not what I need.
I need the automation to add more VMs when needed, but also to shut down VMs when not, during a 24x7 schedule. I don't want it to shutdown VMs only outside working hours.
I tried to check how to add this functionality but I can't seem to find a way of doing it and I can't find the source code that does it to modify it.
Has anyone have a similar problem?
10-26-2020 03:05 PM
@Dante Nahuel Ciai, no problems there at all
It sounds like you need a virtual machine scale set (an overview here). The trick is, just like the App Services, you can scale-out and scale-in the VMs in the scale sets basing on the scalability rules/metrics. For that, you need to create a scale set and enable autoscale for it. Then, using some Azure CLI + Templates you can define the rules. And finally, creating the rule following the guidelines, do not forget to create the same for scaling the set back in (it doesn't happen automatically).
10-27-2020 06:54 AM
@Dante Nahuel Ciai I wrote a script a while ago that got some good feedback. I have a version for WVD classic and another version for WVD ARM. You can find it here.
10-28-2020 06:24 AM
@Travis Roberts Thank you very much! I intended to find out if possible and then try to code it myself. I never expected to be already out there.
Thank you very much.
One last question
I read in the comments that two new "versions" of yours but modified were created.
Do you have any comments on those? The one made by Kandice and the one made by Donald
Thank you in advance!!