How to get Auto scaling configuration for VMSSs
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!