Template

Container App versioned application definition.

AzureContainersDaprKubernetesMicroservicesServerless

Properties

Name Type Description
revisionSuffix string
terminationGracePeriodSeconds integer
initContainers array
containers array
scale object
volumes array
serviceBinds array
View JSON Schema on GitHub

JSON Schema

azure-container-apps-template-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-container-apps/refs/heads/main/json-schema/azure-container-apps-template-schema.json",
  "title": "Template",
  "description": "Container App versioned application definition.",
  "type": "object",
  "properties": {
    "revisionSuffix": {
      "type": "string"
    },
    "terminationGracePeriodSeconds": {
      "type": "integer",
      "format": "int64"
    },
    "initContainers": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Container"
      }
    },
    "containers": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Container"
      }
    },
    "scale": {
      "type": "object",
      "properties": {
        "minReplicas": {
          "type": "integer"
        },
        "maxReplicas": {
          "type": "integer"
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "azureQueue": {
                "type": "object",
                "properties": {
                  "queueName": {
                    "type": "string"
                  },
                  "queueLength": {
                    "type": "integer"
                  },
                  "auth": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "secretRef": {
                          "type": "string"
                        },
                        "triggerParameter": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "custom": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "auth": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "secretRef": {
                          "type": "string"
                        },
                        "triggerParameter": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "http": {
                "type": "object",
                "properties": {
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "auth": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "secretRef": {
                          "type": "string"
                        },
                        "triggerParameter": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "tcp": {
                "type": "object",
                "properties": {
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "auth": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "secretRef": {
                          "type": "string"
                        },
                        "triggerParameter": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "volumes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "storageType": {
            "type": "string",
            "enum": [
              "AzureFile",
              "EmptyDir",
              "Secret"
            ]
          },
          "storageName": {
            "type": "string"
          },
          "secrets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "secretRef": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              }
            }
          },
          "mountOptions": {
            "type": "string"
          }
        }
      }
    },
    "serviceBinds": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      }
    }
  }
}