{
  "description": "Generator information:\n- Generated from: /app/resource-manager/Microsoft.App/stable/2024-03-01/Jobs.json\n- ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "azureName": {
          "description": "AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it\ndoesn't have to be.",
          "pattern": "^[-\\w\\._\\(\\)]+$",
          "type": "string"
        },
        "configuration": {
          "description": "Configuration: Container Apps Job configuration properties.",
          "properties": {
            "eventTriggerConfig": {
              "description": "EventTriggerConfig: Trigger configuration of an event driven job.",
              "properties": {
                "parallelism": {
                  "type": "integer"
                },
                "replicaCompletionCount": {
                  "type": "integer"
                },
                "scale": {
                  "description": "Scale: Scaling configurations for event driven jobs.",
                  "properties": {
                    "maxExecutions": {
                      "description": "MaxExecutions: Maximum number of job executions that are created for a trigger, default 100.",
                      "type": "integer"
                    },
                    "minExecutions": {
                      "description": "MinExecutions: Minimum number of job executions that are created for a trigger, default 0",
                      "type": "integer"
                    },
                    "pollingInterval": {
                      "type": "integer"
                    },
                    "rules": {
                      "description": "Rules: Scaling rules.",
                      "items": {
                        "description": "Scaling rule.",
                        "properties": {
                          "auth": {
                            "description": "Auth: Authentication secrets for the scale rule.",
                            "items": {
                              "description": "Auth Secrets for Scale Rule",
                              "properties": {
                                "secretRef": {
                                  "description": "SecretRef: Name of the secret from which to pull the auth params.",
                                  "type": "string"
                                },
                                "triggerParameter": {
                                  "description": "TriggerParameter: Trigger Parameter that uses the secret",
                                  "type": "string"
                                }
                              },
                              "type": "object",
                              "additionalProperties": false
                            },
                            "type": "array"
                          },
                          "metadata": {
                            "additionalProperties": {
                              "x-kubernetes-preserve-unknown-fields": true
                            },
                            "description": "Metadata: Metadata properties to describe the scale rule.",
                            "type": "object"
                          },
                          "name": {
                            "description": "Name: Scale Rule Name",
                            "type": "string"
                          },
                          "type": {
                            "description": "Type: Type of the scale rule\neg: azure-servicebus, redis etc.",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "manualTriggerConfig": {
              "description": "ManualTriggerConfig: Manual trigger configuration for a single execution job. Properties replicaCompletionCount and\nparallelism would be set to 1 by default",
              "properties": {
                "parallelism": {
                  "type": "integer"
                },
                "replicaCompletionCount": {
                  "type": "integer"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "registries": {
              "description": "Registries: Collection of private container registry credentials used by a Container apps job",
              "items": {
                "description": "Container App Private Registry",
                "properties": {
                  "identityReference": {
                    "description": "IdentityReference: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned\nidentities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'",
                    "properties": {
                      "armId": {
                        "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                        "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                        "type": "string"
                      },
                      "group": {
                        "description": "Group is the Kubernetes group of the resource.",
                        "type": "string"
                      },
                      "kind": {
                        "description": "Kind is the Kubernetes kind of the resource.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Name is the Kubernetes name of the resource.",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "passwordSecretRef": {
                    "description": "PasswordSecretRef: The name of the Secret that contains the registry login password",
                    "type": "string"
                  },
                  "server": {
                    "description": "Server: Container Registry Server",
                    "type": "string"
                  },
                  "username": {
                    "description": "Username: Container Registry Username",
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "replicaRetryLimit": {
              "description": "ReplicaRetryLimit: Maximum number of retries before failing the job.",
              "type": "integer"
            },
            "replicaTimeout": {
              "description": "ReplicaTimeout: Maximum number of seconds a replica is allowed to run.",
              "type": "integer"
            },
            "scheduleTriggerConfig": {
              "description": "ScheduleTriggerConfig: Cron formatted repeating trigger schedule (\"* * * * *\") for cronjobs. Properties completions and\nparallelism would be set to 1 by default",
              "properties": {
                "cronExpression": {
                  "description": "CronExpression: Cron formatted repeating schedule (\"* * * * *\") of a Cron Job.",
                  "type": "string"
                },
                "parallelism": {
                  "type": "integer"
                },
                "replicaCompletionCount": {
                  "type": "integer"
                }
              },
              "required": [
                "cronExpression"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "secrets": {
              "description": "Secrets: Collection of secrets used by a Container Apps Job",
              "items": {
                "description": "Secret definition.",
                "properties": {
                  "identityReference": {
                    "description": "IdentityReference: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a\nsystem-assigned identity.",
                    "properties": {
                      "armId": {
                        "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                        "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                        "type": "string"
                      },
                      "group": {
                        "description": "Group is the Kubernetes group of the resource.",
                        "type": "string"
                      },
                      "kind": {
                        "description": "Kind is the Kubernetes kind of the resource.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Name is the Kubernetes name of the resource.",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "keyVaultUrl": {
                    "description": "KeyVaultUrl: Azure Key Vault URL pointing to the secret referenced by the container app.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Secret Name.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Value: Secret Value.",
                    "properties": {
                      "key": {
                        "description": "Key is the key in the Kubernetes secret being referenced",
                        "type": "string"
                      },
                      "name": {
                        "description": "Name is the name of the Kubernetes secret being referenced.\nThe secret must be in the same namespace as the resource",
                        "type": "string"
                      }
                    },
                    "required": [
                      "key",
                      "name"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "triggerType": {
              "description": "TriggerType: Trigger type of the job",
              "enum": [
                "Event",
                "Manual",
                "Schedule"
              ],
              "type": "string"
            }
          },
          "required": [
            "replicaTimeout",
            "triggerType"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "environmentReference": {
          "description": "EnvironmentReference: Resource ID of environment.",
          "properties": {
            "armId": {
              "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
              "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
              "type": "string"
            },
            "group": {
              "description": "Group is the Kubernetes group of the resource.",
              "type": "string"
            },
            "kind": {
              "description": "Kind is the Kubernetes kind of the resource.",
              "type": "string"
            },
            "name": {
              "description": "Name is the Kubernetes name of the resource.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "identity": {
          "description": "Identity: Managed identities needed by a container app job to interact with other Azure services to not maintain any\nsecrets or credentials in code.",
          "properties": {
            "type": {
              "description": "Type: Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
              "enum": [
                "None",
                "SystemAssigned",
                "SystemAssigned,UserAssigned",
                "UserAssigned"
              ],
              "type": "string"
            },
            "userAssignedIdentities": {
              "items": {
                "description": "Information about the user assigned identity for the resource",
                "properties": {
                  "reference": {
                    "description": "ResourceReference represents a resource reference, either to a Kubernetes resource or directly to an Azure resource via ARMID",
                    "properties": {
                      "armId": {
                        "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                        "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                        "type": "string"
                      },
                      "group": {
                        "description": "Group is the Kubernetes group of the resource.",
                        "type": "string"
                      },
                      "kind": {
                        "description": "Kind is the Kubernetes kind of the resource.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Name is the Kubernetes name of the resource.",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            }
          },
          "required": [
            "type"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "location": {
          "description": "Location: The geo-location where the resource lives",
          "type": "string"
        },
        "operatorSpec": {
          "description": "OperatorSpec: The specification for configuring operator behavior. This field is interpreted by the operator and not\npassed directly to Azure",
          "properties": {
            "configMapExpressions": {
              "description": "ConfigMapExpressions: configures where to place operator written dynamic ConfigMaps (created with CEL expressions).",
              "items": {
                "description": "DestinationExpression is a CEL expression and a destination to store the result in. The destination may\nbe a secret or a configmap. The value of the expression is stored at the specified location in\nthe destination.",
                "properties": {
                  "key": {
                    "description": "Key is the key in the ConfigMap or Secret being written to. If the CEL expression in Value returns a string\nthis is required to identify what key to write to. If the CEL expression in Value returns a map[string]string\nKey must not be set, instead the keys written will be determined dynamically based on the keys of the resulting\nmap[string]string.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name is the name of the Kubernetes configmap or secret to write to.\nThe configmap or secret will be created in the same namespace as the resource.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Value is a CEL expression. The CEL expression may return a string or a map[string]string. For more information\non CEL in ASO see https://azure.github.io/azure-service-operator/guide/expressions/",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "secretExpressions": {
              "description": "SecretExpressions: configures where to place operator written dynamic secrets (created with CEL expressions).",
              "items": {
                "description": "DestinationExpression is a CEL expression and a destination to store the result in. The destination may\nbe a secret or a configmap. The value of the expression is stored at the specified location in\nthe destination.",
                "properties": {
                  "key": {
                    "description": "Key is the key in the ConfigMap or Secret being written to. If the CEL expression in Value returns a string\nthis is required to identify what key to write to. If the CEL expression in Value returns a map[string]string\nKey must not be set, instead the keys written will be determined dynamically based on the keys of the resulting\nmap[string]string.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name is the name of the Kubernetes configmap or secret to write to.\nThe configmap or secret will be created in the same namespace as the resource.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Value is a CEL expression. The CEL expression may return a string or a map[string]string. For more information\non CEL in ASO see https://azure.github.io/azure-service-operator/guide/expressions/",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "owner": {
          "description": "Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also\ncontrols the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a\nreference to a resources.azure.com/ResourceGroup resource",
          "properties": {
            "armId": {
              "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
              "type": "string"
            },
            "name": {
              "description": "This is the name of the Kubernetes resource to reference.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "tags": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags: Resource tags.",
          "type": "object"
        },
        "template": {
          "description": "Template: Container Apps job definition.",
          "properties": {
            "containers": {
              "description": "Containers: List of container definitions for the Container App.",
              "items": {
                "description": "Container App container definition",
                "properties": {
                  "args": {
                    "description": "Args: Container start command arguments.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "command": {
                    "description": "Command: Container start command.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "env": {
                    "description": "Env: Container environment variables.",
                    "items": {
                      "description": "Container App container environment variable.",
                      "properties": {
                        "name": {
                          "description": "Name: Environment variable name.",
                          "type": "string"
                        },
                        "secretRef": {
                          "description": "SecretRef: Name of the Container App secret from which to pull the environment variable value.",
                          "type": "string"
                        },
                        "value": {
                          "description": "Value: Non-secret environment variable value.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "image": {
                    "description": "Image: Container image tag.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Custom container name.",
                    "type": "string"
                  },
                  "probes": {
                    "description": "Probes: List of probes for the container.",
                    "items": {
                      "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive\ntraffic.",
                      "properties": {
                        "failureThreshold": {
                          "description": "FailureThreshold: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to\n3. Minimum value is 1. Maximum value is 10.",
                          "type": "integer"
                        },
                        "httpGet": {
                          "description": "HttpGet: HTTPGet specifies the http request to perform.",
                          "properties": {
                            "host": {
                              "description": "Host: Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.",
                              "type": "string"
                            },
                            "httpHeaders": {
                              "description": "HttpHeaders: Custom headers to set in the request. HTTP allows repeated headers.",
                              "items": {
                                "properties": {
                                  "name": {
                                    "description": "Name: The header field name",
                                    "type": "string"
                                  },
                                  "value": {
                                    "description": "Value: The header field value",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "name",
                                  "value"
                                ],
                                "type": "object",
                                "additionalProperties": false
                              },
                              "type": "array"
                            },
                            "path": {
                              "description": "Path: Path to access on the HTTP server.",
                              "type": "string"
                            },
                            "port": {
                              "description": "Port: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an\nIANA_SVC_NAME.",
                              "type": "integer"
                            },
                            "scheme": {
                              "description": "Scheme: Scheme to use for connecting to the host. Defaults to HTTP.",
                              "enum": [
                                "HTTP",
                                "HTTPS"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "port"
                          ],
                          "type": "object",
                          "additionalProperties": false
                        },
                        "initialDelaySeconds": {
                          "description": "InitialDelaySeconds: Number of seconds after the container has started before liveness probes are initiated. Minimum\nvalue is 1. Maximum value is 60.",
                          "type": "integer"
                        },
                        "periodSeconds": {
                          "description": "PeriodSeconds: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is\n240.",
                          "type": "integer"
                        },
                        "successThreshold": {
                          "description": "SuccessThreshold: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults\nto 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.",
                          "type": "integer"
                        },
                        "tcpSocket": {
                          "description": "TcpSocket: TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.",
                          "properties": {
                            "host": {
                              "description": "Host: Optional: Host name to connect to, defaults to the pod IP.",
                              "type": "string"
                            },
                            "port": {
                              "description": "Port: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an\nIANA_SVC_NAME.",
                              "type": "integer"
                            }
                          },
                          "required": [
                            "port"
                          ],
                          "type": "object",
                          "additionalProperties": false
                        },
                        "terminationGracePeriodSeconds": {
                          "description": "TerminationGracePeriodSeconds: Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the\ntime when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for\nyour process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value\noverrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop\nimmediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling\nProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 hour)",
                          "type": "integer"
                        },
                        "timeoutSeconds": {
                          "description": "TimeoutSeconds: Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum\nvalue is 240.",
                          "type": "integer"
                        },
                        "type": {
                          "description": "Type: The type of probe.",
                          "enum": [
                            "Liveness",
                            "Readiness",
                            "Startup"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "resources": {
                    "description": "Resources: Container resource requirements.",
                    "properties": {
                      "cpu": {
                        "description": "Cpu: Required CPU in cores, e.g. 0.5",
                        "type": "number"
                      },
                      "memory": {
                        "description": "Memory: Required memory, e.g. \"250Mb\"",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "volumeMounts": {
                    "description": "VolumeMounts: Container volume mounts.",
                    "items": {
                      "description": "Volume mount for the Container App.",
                      "properties": {
                        "mountPath": {
                          "description": "MountPath: Path within the container at which the volume should be mounted.Must not contain ':'.",
                          "type": "string"
                        },
                        "subPath": {
                          "description": "SubPath: Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
                          "type": "string"
                        },
                        "volumeName": {
                          "description": "VolumeName: This must match the Name of a Volume.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "initContainers": {
              "description": "InitContainers: List of specialized containers that run before app containers.",
              "items": {
                "description": "Container App base container definition.",
                "properties": {
                  "args": {
                    "description": "Args: Container start command arguments.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "command": {
                    "description": "Command: Container start command.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "env": {
                    "description": "Env: Container environment variables.",
                    "items": {
                      "description": "Container App container environment variable.",
                      "properties": {
                        "name": {
                          "description": "Name: Environment variable name.",
                          "type": "string"
                        },
                        "secretRef": {
                          "description": "SecretRef: Name of the Container App secret from which to pull the environment variable value.",
                          "type": "string"
                        },
                        "value": {
                          "description": "Value: Non-secret environment variable value.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "image": {
                    "description": "Image: Container image tag.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Custom container name.",
                    "type": "string"
                  },
                  "resources": {
                    "description": "Resources: Container resource requirements.",
                    "properties": {
                      "cpu": {
                        "description": "Cpu: Required CPU in cores, e.g. 0.5",
                        "type": "number"
                      },
                      "memory": {
                        "description": "Memory: Required memory, e.g. \"250Mb\"",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "volumeMounts": {
                    "description": "VolumeMounts: Container volume mounts.",
                    "items": {
                      "description": "Volume mount for the Container App.",
                      "properties": {
                        "mountPath": {
                          "description": "MountPath: Path within the container at which the volume should be mounted.Must not contain ':'.",
                          "type": "string"
                        },
                        "subPath": {
                          "description": "SubPath: Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
                          "type": "string"
                        },
                        "volumeName": {
                          "description": "VolumeName: This must match the Name of a Volume.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "volumes": {
              "description": "Volumes: List of volume definitions for the Container App.",
              "items": {
                "description": "Volume definitions for the Container App.",
                "properties": {
                  "mountOptions": {
                    "description": "MountOptions: Mount options used while mounting the AzureFile. Must be a comma-separated string.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Volume name.",
                    "type": "string"
                  },
                  "secrets": {
                    "description": "Secrets: List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to\nvolume.",
                    "items": {
                      "description": "Secret to be added to volume.",
                      "properties": {
                        "path": {
                          "description": "Path: Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.",
                          "type": "string"
                        },
                        "secretRef": {
                          "description": "SecretRef: Name of the Container App secret from which to pull the secret value.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "storageName": {
                    "description": "StorageName: Name of storage resource. No need to provide for EmptyDir and Secret.",
                    "type": "string"
                  },
                  "storageType": {
                    "description": "StorageType: Storage type for the volume. If not provided, use EmptyDir.",
                    "enum": [
                      "AzureFile",
                      "EmptyDir",
                      "Secret"
                    ],
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "workloadProfileName": {
          "description": "WorkloadProfileName: Workload profile name to pin for container apps job execution.",
          "type": "string"
        }
      },
      "required": [
        "location",
        "owner"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "Container App Job",
      "properties": {
        "conditions": {
          "description": "Conditions: The observed state of the resource",
          "items": {
            "description": "Condition defines an extension to status (an observation) of a resource",
            "properties": {
              "lastTransitionTime": {
                "description": "LastTransitionTime is the last time the condition transitioned from one status to another.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "Message is a human readable message indicating details about the transition. This field may be empty.",
                "type": "string"
              },
              "observedGeneration": {
                "description": "ObservedGeneration is the .metadata.generation that the condition was set based upon. For instance, if\n.metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "type": "integer"
              },
              "reason": {
                "description": "Reason for the condition's last transition.\nReasons are upper CamelCase (PascalCase) with no spaces. A reason is always provided, this field will not be empty.",
                "type": "string"
              },
              "severity": {
                "description": "Severity with which to treat failures of this type of condition.\nFor conditions which have positive polarity (Status == True is their normal/healthy state), this will be omitted when Status == True\nFor conditions which have negative polarity (Status == False is their normal/healthy state), this will be omitted when Status == False.\nThis is omitted in all cases when Status == Unknown",
                "type": "string"
              },
              "status": {
                "description": "Status of the condition, one of True, False, or Unknown.",
                "type": "string"
              },
              "type": {
                "description": "Type of condition.",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "reason",
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "configuration": {
          "description": "Configuration: Container Apps Job configuration properties.",
          "properties": {
            "eventTriggerConfig": {
              "description": "EventTriggerConfig: Trigger configuration of an event driven job.",
              "properties": {
                "parallelism": {
                  "type": "integer"
                },
                "replicaCompletionCount": {
                  "type": "integer"
                },
                "scale": {
                  "description": "Scale: Scaling configurations for event driven jobs.",
                  "properties": {
                    "maxExecutions": {
                      "description": "MaxExecutions: Maximum number of job executions that are created for a trigger, default 100.",
                      "type": "integer"
                    },
                    "minExecutions": {
                      "description": "MinExecutions: Minimum number of job executions that are created for a trigger, default 0",
                      "type": "integer"
                    },
                    "pollingInterval": {
                      "type": "integer"
                    },
                    "rules": {
                      "description": "Rules: Scaling rules.",
                      "items": {
                        "description": "Scaling rule.",
                        "properties": {
                          "auth": {
                            "description": "Auth: Authentication secrets for the scale rule.",
                            "items": {
                              "description": "Auth Secrets for Scale Rule",
                              "properties": {
                                "secretRef": {
                                  "description": "SecretRef: Name of the secret from which to pull the auth params.",
                                  "type": "string"
                                },
                                "triggerParameter": {
                                  "description": "TriggerParameter: Trigger Parameter that uses the secret",
                                  "type": "string"
                                }
                              },
                              "type": "object",
                              "additionalProperties": false
                            },
                            "type": "array"
                          },
                          "metadata": {
                            "additionalProperties": {
                              "x-kubernetes-preserve-unknown-fields": true
                            },
                            "description": "Metadata: Metadata properties to describe the scale rule.",
                            "type": "object"
                          },
                          "name": {
                            "description": "Name: Scale Rule Name",
                            "type": "string"
                          },
                          "type": {
                            "description": "Type: Type of the scale rule\neg: azure-servicebus, redis etc.",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "manualTriggerConfig": {
              "description": "ManualTriggerConfig: Manual trigger configuration for a single execution job. Properties replicaCompletionCount and\nparallelism would be set to 1 by default",
              "properties": {
                "parallelism": {
                  "type": "integer"
                },
                "replicaCompletionCount": {
                  "type": "integer"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "registries": {
              "description": "Registries: Collection of private container registry credentials used by a Container apps job",
              "items": {
                "description": "Container App Private Registry",
                "properties": {
                  "identity": {
                    "description": "Identity: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the\nfull user-assigned identity Resource ID. For system-assigned identities, use 'system'",
                    "type": "string"
                  },
                  "passwordSecretRef": {
                    "description": "PasswordSecretRef: The name of the Secret that contains the registry login password",
                    "type": "string"
                  },
                  "server": {
                    "description": "Server: Container Registry Server",
                    "type": "string"
                  },
                  "username": {
                    "description": "Username: Container Registry Username",
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "replicaRetryLimit": {
              "description": "ReplicaRetryLimit: Maximum number of retries before failing the job.",
              "type": "integer"
            },
            "replicaTimeout": {
              "description": "ReplicaTimeout: Maximum number of seconds a replica is allowed to run.",
              "type": "integer"
            },
            "scheduleTriggerConfig": {
              "description": "ScheduleTriggerConfig: Cron formatted repeating trigger schedule (\"* * * * *\") for cronjobs. Properties completions and\nparallelism would be set to 1 by default",
              "properties": {
                "cronExpression": {
                  "description": "CronExpression: Cron formatted repeating schedule (\"* * * * *\") of a Cron Job.",
                  "type": "string"
                },
                "parallelism": {
                  "type": "integer"
                },
                "replicaCompletionCount": {
                  "type": "integer"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "secrets": {
              "description": "Secrets: Collection of secrets used by a Container Apps Job",
              "items": {
                "description": "Secret definition.",
                "properties": {
                  "identity": {
                    "description": "Identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned\nidentity.",
                    "type": "string"
                  },
                  "keyVaultUrl": {
                    "description": "KeyVaultUrl: Azure Key Vault URL pointing to the secret referenced by the container app.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Secret Name.",
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "triggerType": {
              "description": "TriggerType: Trigger type of the job",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "environmentId": {
          "description": "EnvironmentId: Resource ID of environment.",
          "type": "string"
        },
        "eventStreamEndpoint": {
          "description": "EventStreamEndpoint: The endpoint of the eventstream of the container apps job.",
          "type": "string"
        },
        "id": {
          "description": "Id: Fully qualified resource ID for the resource. Ex -\n/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
          "type": "string"
        },
        "identity": {
          "description": "Identity: Managed identities needed by a container app job to interact with other Azure services to not maintain any\nsecrets or credentials in code.",
          "properties": {
            "principalId": {
              "description": "PrincipalId: The service principal ID of the system assigned identity. This property will only be provided for a system\nassigned identity.",
              "type": "string"
            },
            "tenantId": {
              "description": "TenantId: The tenant ID of the system assigned identity. This property will only be provided for a system assigned\nidentity.",
              "type": "string"
            },
            "type": {
              "description": "Type: Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
              "type": "string"
            },
            "userAssignedIdentities": {
              "additionalProperties": {
                "description": "User assigned identity properties",
                "properties": {
                  "clientId": {
                    "description": "ClientId: The client ID of the assigned identity.",
                    "type": "string"
                  },
                  "principalId": {
                    "description": "PrincipalId: The principal ID of the assigned identity.",
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "object"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "location": {
          "description": "Location: The geo-location where the resource lives",
          "type": "string"
        },
        "name": {
          "description": "Name: The name of the resource",
          "type": "string"
        },
        "outboundIpAddresses": {
          "description": "OutboundIpAddresses: Outbound IP Addresses of a container apps job.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "provisioningState": {
          "description": "ProvisioningState: Provisioning state of the Container Apps Job.",
          "type": "string"
        },
        "systemData": {
          "description": "SystemData: Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "properties": {
            "createdAt": {
              "description": "CreatedAt: The timestamp of resource creation (UTC).",
              "type": "string"
            },
            "createdBy": {
              "description": "CreatedBy: The identity that created the resource.",
              "type": "string"
            },
            "createdByType": {
              "description": "CreatedByType: The type of identity that created the resource.",
              "type": "string"
            },
            "lastModifiedAt": {
              "description": "LastModifiedAt: The timestamp of resource last modification (UTC)",
              "type": "string"
            },
            "lastModifiedBy": {
              "description": "LastModifiedBy: The identity that last modified the resource.",
              "type": "string"
            },
            "lastModifiedByType": {
              "description": "LastModifiedByType: The type of identity that last modified the resource.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "tags": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags: Resource tags.",
          "type": "object"
        },
        "template": {
          "description": "Template: Container Apps job definition.",
          "properties": {
            "containers": {
              "description": "Containers: List of container definitions for the Container App.",
              "items": {
                "description": "Container App container definition",
                "properties": {
                  "args": {
                    "description": "Args: Container start command arguments.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "command": {
                    "description": "Command: Container start command.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "env": {
                    "description": "Env: Container environment variables.",
                    "items": {
                      "description": "Container App container environment variable.",
                      "properties": {
                        "name": {
                          "description": "Name: Environment variable name.",
                          "type": "string"
                        },
                        "secretRef": {
                          "description": "SecretRef: Name of the Container App secret from which to pull the environment variable value.",
                          "type": "string"
                        },
                        "value": {
                          "description": "Value: Non-secret environment variable value.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "image": {
                    "description": "Image: Container image tag.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Custom container name.",
                    "type": "string"
                  },
                  "probes": {
                    "description": "Probes: List of probes for the container.",
                    "items": {
                      "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive\ntraffic.",
                      "properties": {
                        "failureThreshold": {
                          "description": "FailureThreshold: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to\n3. Minimum value is 1. Maximum value is 10.",
                          "type": "integer"
                        },
                        "httpGet": {
                          "description": "HttpGet: HTTPGet specifies the http request to perform.",
                          "properties": {
                            "host": {
                              "description": "Host: Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.",
                              "type": "string"
                            },
                            "httpHeaders": {
                              "description": "HttpHeaders: Custom headers to set in the request. HTTP allows repeated headers.",
                              "items": {
                                "properties": {
                                  "name": {
                                    "description": "Name: The header field name",
                                    "type": "string"
                                  },
                                  "value": {
                                    "description": "Value: The header field value",
                                    "type": "string"
                                  }
                                },
                                "type": "object",
                                "additionalProperties": false
                              },
                              "type": "array"
                            },
                            "path": {
                              "description": "Path: Path to access on the HTTP server.",
                              "type": "string"
                            },
                            "port": {
                              "description": "Port: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an\nIANA_SVC_NAME.",
                              "type": "integer"
                            },
                            "scheme": {
                              "description": "Scheme: Scheme to use for connecting to the host. Defaults to HTTP.",
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "additionalProperties": false
                        },
                        "initialDelaySeconds": {
                          "description": "InitialDelaySeconds: Number of seconds after the container has started before liveness probes are initiated. Minimum\nvalue is 1. Maximum value is 60.",
                          "type": "integer"
                        },
                        "periodSeconds": {
                          "description": "PeriodSeconds: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is\n240.",
                          "type": "integer"
                        },
                        "successThreshold": {
                          "description": "SuccessThreshold: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults\nto 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.",
                          "type": "integer"
                        },
                        "tcpSocket": {
                          "description": "TcpSocket: TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.",
                          "properties": {
                            "host": {
                              "description": "Host: Optional: Host name to connect to, defaults to the pod IP.",
                              "type": "string"
                            },
                            "port": {
                              "description": "Port: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an\nIANA_SVC_NAME.",
                              "type": "integer"
                            }
                          },
                          "type": "object",
                          "additionalProperties": false
                        },
                        "terminationGracePeriodSeconds": {
                          "description": "TerminationGracePeriodSeconds: Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the\ntime when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for\nyour process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value\noverrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop\nimmediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling\nProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 hour)",
                          "type": "integer"
                        },
                        "timeoutSeconds": {
                          "description": "TimeoutSeconds: Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum\nvalue is 240.",
                          "type": "integer"
                        },
                        "type": {
                          "description": "Type: The type of probe.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "resources": {
                    "description": "Resources: Container resource requirements.",
                    "properties": {
                      "cpu": {
                        "description": "Cpu: Required CPU in cores, e.g. 0.5",
                        "type": "number"
                      },
                      "ephemeralStorage": {
                        "description": "EphemeralStorage: Ephemeral Storage, e.g. \"1Gi\"",
                        "type": "string"
                      },
                      "memory": {
                        "description": "Memory: Required memory, e.g. \"250Mb\"",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "volumeMounts": {
                    "description": "VolumeMounts: Container volume mounts.",
                    "items": {
                      "description": "Volume mount for the Container App.",
                      "properties": {
                        "mountPath": {
                          "description": "MountPath: Path within the container at which the volume should be mounted.Must not contain ':'.",
                          "type": "string"
                        },
                        "subPath": {
                          "description": "SubPath: Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
                          "type": "string"
                        },
                        "volumeName": {
                          "description": "VolumeName: This must match the Name of a Volume.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "initContainers": {
              "description": "InitContainers: List of specialized containers that run before app containers.",
              "items": {
                "description": "Container App base container definition.",
                "properties": {
                  "args": {
                    "description": "Args: Container start command arguments.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "command": {
                    "description": "Command: Container start command.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "env": {
                    "description": "Env: Container environment variables.",
                    "items": {
                      "description": "Container App container environment variable.",
                      "properties": {
                        "name": {
                          "description": "Name: Environment variable name.",
                          "type": "string"
                        },
                        "secretRef": {
                          "description": "SecretRef: Name of the Container App secret from which to pull the environment variable value.",
                          "type": "string"
                        },
                        "value": {
                          "description": "Value: Non-secret environment variable value.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "image": {
                    "description": "Image: Container image tag.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Custom container name.",
                    "type": "string"
                  },
                  "resources": {
                    "description": "Resources: Container resource requirements.",
                    "properties": {
                      "cpu": {
                        "description": "Cpu: Required CPU in cores, e.g. 0.5",
                        "type": "number"
                      },
                      "ephemeralStorage": {
                        "description": "EphemeralStorage: Ephemeral Storage, e.g. \"1Gi\"",
                        "type": "string"
                      },
                      "memory": {
                        "description": "Memory: Required memory, e.g. \"250Mb\"",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "volumeMounts": {
                    "description": "VolumeMounts: Container volume mounts.",
                    "items": {
                      "description": "Volume mount for the Container App.",
                      "properties": {
                        "mountPath": {
                          "description": "MountPath: Path within the container at which the volume should be mounted.Must not contain ':'.",
                          "type": "string"
                        },
                        "subPath": {
                          "description": "SubPath: Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
                          "type": "string"
                        },
                        "volumeName": {
                          "description": "VolumeName: This must match the Name of a Volume.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "volumes": {
              "description": "Volumes: List of volume definitions for the Container App.",
              "items": {
                "description": "Volume definitions for the Container App.",
                "properties": {
                  "mountOptions": {
                    "description": "MountOptions: Mount options used while mounting the AzureFile. Must be a comma-separated string.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name: Volume name.",
                    "type": "string"
                  },
                  "secrets": {
                    "description": "Secrets: List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to\nvolume.",
                    "items": {
                      "description": "Secret to be added to volume.",
                      "properties": {
                        "path": {
                          "description": "Path: Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.",
                          "type": "string"
                        },
                        "secretRef": {
                          "description": "SecretRef: Name of the Container App secret from which to pull the secret value.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "storageName": {
                    "description": "StorageName: Name of storage resource. No need to provide for EmptyDir and Secret.",
                    "type": "string"
                  },
                  "storageType": {
                    "description": "StorageType: Storage type for the volume. If not provided, use EmptyDir.",
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "type": {
          "description": "Type: The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "type": "string"
        },
        "workloadProfileName": {
          "description": "WorkloadProfileName: Workload profile name to pin for container apps job execution.",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
