Azure Host-Pool and VMSS - Create Scale Rule on the Average Sessions of the Host-Pool

Alan Benet 35 Reputation points
2024-08-08T10:07:41.49+00:00

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?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,791 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
384 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.