How to get Auto scaling configuration for VMSSs

Anil Kumar 480 Reputation points
2024-07-31T11:44:08.1633333+00:00

Hello,

We have a requirement to fetch auto scaling configurations including auto scale status (enabled, disable or configured) auto scaling type (manual or custom), MIn and Max instance counts along with default instance count for 1000+ virtual machine scale sets. Insights is not enabled for all VMSSs.

I tried following KQL in Azure resource explorer and parsed its properties column but couldn't find what I was looking for.

resources
| where type == "microsoft.compute/virtualmachinescalesets"
		

Then I tried following table and parsed its data, it does have scaling info but only for few VM scale sets, not all.

resources
| where type == "microsoft.insights/autoscalesettings"

How can I fetch auto scaling details for all VM scale sets?

Appreciate your help.

Thank you!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,196 questions
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,504 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.