To create an HTTP scale rule that is based on the number of concurrent requests, use the command below.
az containerapp update \
--name $CONTAINER_APP_NAME \
--resource-group $RESOURCE_GROUP \
--min-replicas 0 \
--max-replicas 10 \
--scale-rule-name http-scaling \
--scale-rule-type http \
--scale-rule-http-concurrency 10
The behavior of this command has been altered by the following extension: containerapp
{
"id": "[REDACTED]",
"identity": {
"principalId": "[REDACTED]",
"tenantId": "[REDACTED]",
"type": "SystemAssigned"
},
"location": "[REDACTED]",
"name": "[REDACTED]",
"properties": {
"environmentId": "[REDACTED]",
"latestRevisionFqdn": "[REDACTED]",
"latestRevisionName": "[REDACTED]",
"outboundIpAddresses": ["[REDACTED]"],
"provisioningState": "Succeeded",
"runningStatus": "Running"
},
"resourceGroup": "[REDACTED]",
"systemData": {
"createdBy": "[REDACTED]",
"lastModifiedBy": "[REDACTED]"
}
}
To retrieve the autoscaling configuration:
az containerapp show \
--name $CONTAINER_APP_NAME \
--resource-group $RESOURCE_GROUP \
--query "properties.template.scale"
The behavior of this command has been altered by the following extension: containerapp
{
"cooldownPeriod": 300,
"maxReplicas": 10,
"minReplicas": 0,
"pollingInterval": 30,
"rules": [
{
"http": {
"auth": [],
"metadata": {
"concurrentRequests": "10"
}
},
"name": "http-scaling"
}
]
}