Azure Host-Pool and VMSS - Create Scale Rule on the Average Sessions of the Host-Pool
Hi
I'm struggling quiet a bit at the moment with the VMSS.
I have a Host-Pool and a VMSS.
The Virtual Machines that are created from the VMSS and join the Host-Pool.
For the Host-Pool we set the limit of 16 sessions for each VM.
Since the VMSS doesn't know when the Host-Pool sessions limit is reached, I would like to add a Scale Rule which checks the average sessions count on the vms and depending on value the VMSS should increase the number of instances.
While looking for a solution I stumbled more than once on the Alert Rules.
I created an Alert Rule with a custom script. The script gives me the desired output of the average sessions on the VMs. The alert works and I see that it is launched on the Monitor page.
Now I've come to a dead end.
I don't know how to add or use the alert rule in the Scale Rule.
And I don't know if there are other solutions for it.
Could you help me? Or give any suggestions?