An Azure service that provides an event-driven serverless compute platform.
Hi Lars, nice troubleshooting.
Per the docs, maximumInstanceCount is a hard ceiling for on-demand instances, but it applies per scaling group, not to the whole app. HTTP triggers share one "http" group, and each non-HTTP function (like your timer) scales on its own. Always ready instances don't count toward that limit either.
So if only HTTP functions were running and alwaysReady is empty, 31 instances with a limit of 20 is not expected. You can check it with:
az functionapp show -g <rg> -n <app> --query "properties.functionAppConfig.scaleAndConcurrency"
About functionAppScaleLimit: on Flex Consumption it was renamed to maximumInstanceCount, that's why it gets rejected.
If the config looks clean, I'd go ahead with the ticket and include the UTC time windows, region, resource ID and your OnDemandFunctionExecutionUnits numbers.