General command to set
az functionapp scale config set --resource-group <RESOURCE_GROUP> --name <APP_NAME> --trigger-type http --trigger-settings perInstanceConcurrency=10
e.g. set to 2 events per instance
export RESOURCE_GROUP="rg-flex-ai-oslo"
export SERVICE_API_NAME="func-b2q2fard2jmqw-functions"
export CONCURRENCY=1
az functionapp scale config set --resource-group $RESOURCE_GROUP --name $SERVICE_API_NAME --trigger-type http --trigger-settings perInstanceConcurrency=$CONCURRENCY
View config
az functionapp scale config show --resource-group RESOURCE_GROUP --name SERVICE_API_NAME
Deploy a flex consumption app
export AZURE_FUNCTION_NAME="func-api-ptzeofks65jis-functions"
func azure functionapp publish $AZURE_FUNCTION_NAME --dotnet-isolated