2

I am using terraform to create autoscale settings for VMs. I am able to add rules for autoscale based on CPU percentage metric:

    rule {
            metric_trigger {
                operator           = "GreaterThan"
                threshold          = 50
                time_grain         = "PT1M"
                statistic          = "Average"
                time_window        = "PT5M"
                metric_name        = "Percentage CPU"
                time_aggregation   = "Average"
            }
     }

However, I am not able to find how to add rules based on memory percentage utilization. Has anyone done something similar like this? I am even not able to see whether this is supported by the provider: resource_arm_autoscale_setting

yanis
  • 303
  • 3
  • 15

1 Answers1

2

You could not create it since memory consumption is not available in built-in host metrics from your VM instances. To create autoscale rules that use more detailed performance metrics, you can install and configure the Azure diagnostics extension on VM instances.

You could see the Guest OS metrics Resource Manager-based Windows VMs enter image description here For more references:

Nancy
  • 26,865
  • 3
  • 18
  • 34