Container

Container schema from Azure Container Apps API

AzureContainersDaprKubernetesMicroservicesServerless

Properties

Name Type Description
image string
name string
command array
args array
env array
resources object
volumeMounts array
probes array
View JSON Schema on GitHub

JSON Schema

azure-container-apps-container-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-container-schema.json",
  "title": "Container",
  "description": "Container schema from Azure Container Apps API",
  "type": "object",
  "properties": {
    "image": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "command": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "args": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "env": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "secretRef": {
            "type": "string"
          }
        }
      }
    },
    "resources": {
      "type": "object",
      "properties": {
        "cpu": {
          "type": "number"
        },
        "memory": {
          "type": "string"
        },
        "ephemeralStorage": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "volumeMounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "volumeName": {
            "type": "string"
          },
          "mountPath": {
            "type": "string"
          },
          "subPath": {
            "type": "string"
          }
        }
      }
    },
    "probes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "failureThreshold": {
            "type": "integer"
          },
          "httpGet": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "httpHeaders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  }
                }
              },
              "path": {
                "type": "string"
              },
              "port": {
                "type": "integer"
              },
              "scheme": {
                "type": "string",
                "enum": [
                  "HTTP",
                  "HTTPS"
                ]
              }
            }
          },
          "initialDelaySeconds": {
            "type": "integer"
          },
          "periodSeconds": {
            "type": "integer"
          },
          "successThreshold": {
            "type": "integer"
          },
          "tcpSocket": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "port": {
                "type": "integer"
              }
            }
          },
          "terminationGracePeriodSeconds": {
            "type": "integer",
            "format": "int64"
          },
          "timeoutSeconds": {
            "type": "integer"
          },
          "type": {
            "type": "string",
            "enum": [
              "Liveness",
              "Readiness",
              "Startup"
            ]
          }
        }
      }
    }
  }
}