An organization deploys a background processing application to an Azure App Service Plan in the East US region. The application processes tasks from an Azure Service Bus queue named `task-queue` in the same region.
To handle spikes in workload, you configure an autoscale setting on the App Service Plan with the following scale-out rule:
- Metric source: Service Bus Queue (`task-queue`)
- Metric name: `ActiveMessages`
- Time Grain (Frequency): -minute
- Time Window: -minutes
- Time Aggregation: `Total`
- Operator: `GreaterThan`
- Threshold:
- Scale Action: Increase count by
During a period of stable, low traffic, the queue maintains a steady backlog of approximately active messages. However, you observe that the App Service Plan unexpectedly scales out to its maximum instance count.
Which of the following is the root cause of this unexpected scaling behavior?
- AThe App Service Plan and the Service Bus namespace are located in the same region, which causes a routing conflict for Azure Monitor cross-resource metrics.
- The `Total` time aggregation sums the samples over the -minute window, resulting in an evaluated metric value of approximately , which exceeds the threshold of .Answer
- CThe `ActiveMessages` metric is a cumulative counter that only increases, meaning any aggregation other than `Average` will fail to compute the rate of change.
- DScaling an App Service Plan based on external Service Bus metrics is unsupported on standard hosting plans, requiring an Isolated App Service Environment.