Hello , Welcome to MS Q&A
The most likely issue is a time aggregation mismatch in the autoscale configuration.
Currently, the scale-in rule is configured as:
Time Grain Statistic: Maximum
Time Aggregation: Average
This mismatch prevents the scale-in action from triggering correctly.
Why This Is a Problem
You are checking whether:
Connection Count (Maximum) ≤ 930
However, Azure evaluates the average of the maximum values over the selected duration.
This means that if even one minute within the evaluation period has a maximum value greater than 930, the calculated average may still exceed 930 — even if the current maximum value is below 930.
As a result, the scale-in condition does not get satisfied.
Quick Fix
Update the scale-in rule so that the aggregation matches the statistic.
Current (Incorrect):
Time Grain Statistic: Maximum
Time Aggregation: Average
Correct Configuration:
Time Grain Statistic: Maximum
Time Aggregation: Maximum
The aggregation must align with the selected statistic.
Recommended Scale-In Configuration
Update the rule as follows:
- Metric: Connection Count
Dimension: Endpoint of connections = All values
Operator: Less than or equal to
Threshold: 930
Duration: 10 minutes (increase from 5 minutes)
Time Grain: 1 minute
Time Grain Statistic: Maximum
Time Aggregation: Maximum
Action: Decrease count by 1
Cool Down: 10 minutes (increase from 5 minutes)
Pls check and let us know.
Thanks
Deepanshu