What are the possible ways available to Scale Out/In VMs based on number of outstanding requests of Azure storage queue?

Smita Mohapatra 41 Reputation points
2022-01-20T12:26:00.007+00:00

I have messages in Azure storage queue.
I want to Scale Out/In vms on the basis of number of requests present in Azure storage queue.

Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
98 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.
353 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 21,501 Reputation points MVP
    2022-01-20T13:19:12.89+00:00

    Hi,
    As a suggestion you can use Metric alerts (assuming that number of requests is the same as Queue Message Count or some other metric) to create such alerts that are attached to action group that has link to automation service like Azure Automation runbook or Azure Function. The logic of those services will be code that scales out/in.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    3 people found this answer helpful.