Error in creating settings in container app

Kirill Egorov 0 Reputation points
2026-07-24T14:28:04.6+00:00

I keep getting the following error when creating an infra in terraform for container apps

Attempting to set a key/value pair which when combined with all settings would exceed the portal's limit: 10240 bytes
Current: 10128 bytes
Requested: 120 bytes

az containerapp show -n analytics-api -g rg-analytics-staging -o json | wc -c
~6854 bytes

Environment details

  • Resource type: Azure Container Apps
  • Deployment method: Terraform (azurerm provider)
  • Region: East US
  • Number of affected apps: 3
  • Reproducible after full resource group recreation: Yes
Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.


2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 18,416 Reputation points MVP Volunteer Moderator
    2026-07-25T04:19:22.7233333+00:00

    Hello @Kirill Egorov,

    Thanks for using Q & A forum.

    Instead of storing large payloads directly in Container App settings:

    • Move secrets to Azure Key Vault
    • Store configuration files in:
      • Azure Blob Storage
      • Azure App Configuration
      • Cosmos DB / SQL / Storage Tables (depending on use case)
    • Reference Key Vault secrets rather than embedding large values directly

    If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

    Was this answer helpful?


  2. Christos Panagiotidis 3,546 Reputation points
    2026-07-24T16:13:32.3733333+00:00

    The error is deterministic: the generated Container Apps configuration is already 10,128 bytes, and the requested setting takes it beyond the 10,240-byte limit reported by the service. Recreating the resource group will not change that payload size. Inspect the Terraform plan and the final environment-variable and secret arrays for duplicated keys, stale values, or large embedded certificates and JSON documents. Remove unused entries and avoid copying the same value into several variables. Put sensitive values in Key Vault and reference them from Container Apps secrets, or move larger non-secret configuration into an external configuration store or mounted file. Then apply the smallest change to one app and verify the new revision. Microsoft’s public documentation does not describe a quota-increase path for this validation limit, so the safe resolution is to reduce or split the application-level settings rather than retry the deployment unchanged.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.