ARM Template with Definition of Container App working fine with this definition:
"scale": {
"minReplicas": 0,
"maxReplicas": 1
}
}
but after adding:
"scale": {
"minReplicas": 0,
"maxReplicas": 1,
"cooldownPeriod": "500s",
"pollingInterval": "200s"
}
}
I see the error:
Invalid request body for container app. Path: $. Does not conform to Container App schema, please visit for more information https://docs.microsoft.com/azure/container-apps/azure-resource-manager-api-spec?tabs=arm-template#container-app
The entire section:
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"name": "updateContainerAppWithWebhook",
"dependsOn": [
"[resourceId('Microsoft.App/containerApps', variables('appName'))]"
],
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.App/containerApps",
"apiVersion": "2023-05-01",
"name": "[variables('appName')]",
"location": "[parameters('location')]",
"properties": {
"managedEnvironmentId": "[resourceId('Microsoft.App/managedEnvironments', concat(parameters('environmentName'), '-vnet'))]",
"configuration": {
"activeRevisionsMode": "Single",
"ingress": "[if(parameters('useHttpIngress'), variables('httpIngress'), variables('defaultIngress'))]"
},
"template": {
"containers": [
{
"name": "app",
"image": "mafamafa/haproxy-env-config:202504021902",
"env": [...{variables romeved]...],
"resources": {
"cpu": "0.5",
"memory": "1Gi"
}
}
],
"scale": {
"minReplicas": 0,
"maxReplicas": 1,
"cooldownPeriod": "500s",
"pollingInterval": "200s"
}
}
}
}
]
}
}
},
Where the cooldownPeriod and pollingInterval should be? After I export template they are exacly in this place.