Skip to content

Instantly share code, notes, and snippets.

@paulyuk
Last active October 23, 2024 11:35
Show Gist options
  • Save paulyuk/e617a53f045e9f872a29631dc5437bc3 to your computer and use it in GitHub Desktop.
Save paulyuk/e617a53f045e9f872a29631dc5437bc3 to your computer and use it in GitHub Desktop.
Developer Days 2024

Configuring scale

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-devdays-extreme-httpeh-sw"
export SERVICE_API_NAME="func-l4tubknpmxdbs-functions"
export CONCURRENCY=2
az functionapp scale config set --resource-group $RESOURCE_GROUP --name $SERVICE_API_NAME --trigger-type http --trigger-settings perInstanceConcurrency=1

View config

az functionapp scale config show --resource-group $RESOURCE_GROUP --name $SERVICE_API_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment