Create Create
Create Certified

yaml
type: "io.kestra.plugin.azure.batch.job.Create"
yaml
id: azure_batch_job_create
namespace: company.team

tasks:
  - id: create
    type: io.kestra.plugin.azure.batch.job.Create
    endpoint: https://my.francecentral.batch.azure.com
    account: "{{ secret('AZURE_ACCOUNT') }}"
    accessKey: "{{ secret('AZURE_ACCESS_KEY') }}"
    poolId: "{{ secret('AZURE_POOL_ID') }}"
    job:
      id: myjob
    tasks:
      - id: env
        commands:
          - 'echo t1=$ENV_STRING'
        environments:
          ENV_STRING: "{{ inputs.first }}"

      - id: echo
        commands:
          - 'echo t2={{ inputs.second }} 1>&2'

      - id: for
        commands:
          -  'for i in $(seq 10); do echo t3=$i; done'

      - id: vars
        commands:
          - echo '::{"outputs":{"extract":"'$(cat files/in/in.txt)'"}::'
        resourceFiles:
          - httpUrl: https://unittestkt.blob.core.windows.net/tasks/***?sv=***&se=***&sr=***&sp=***&sig=***
            filePath: files/in/in.txt

      - id: output
        commands:
          - 'mkdir -p outs/child/sub'
          - 'echo 1 > outs/1.txt'
          - 'echo 2 > outs/child/2.txt'
          - 'echo 3 > outs/child/sub/3.txt'
        outputFiles:
          - outs/1.txt
        outputDirs:
          - outs/child

yaml
id: azure_batch_job_create
namespace: company.team

tasks:
  - id: create
    type: io.kestra.plugin.azure.batch.job.Create
    endpoint: https://***.francecentral.batch.azure.com
    account: <batch-account>
    accessKey: <access-key>
    poolId: <pool-id>
    job:
      id: <job-name>
    tasks:
      - id: echo
        commands:
          - 'python --version'
        containerSettings:
          imageName: python
Properties
Definitions
id*Requiredstring
Max length64
displayNamestring
Max length1024
labelsobject
SubTypestring
maxParallelTasksintegerstring
priorityintegerstring
Definitions
commands*Requiredarray
SubTypestring
id*Requiredstring
Max length64
constraints
maxTaskRetryCountintegerstring
maxWallClockTimestring
Formatduration
retentionTimestring
Formatduration
containerSettings
imageName*Requiredstring
containerRunOptionsstring
registry
identityReference
passwordstring
registryServerstring
userNamestring
workingDirectorystring
Possible Values
TASK_WORKING_DIRECTORYCONTAINER_IMAGE_DEFAULT
displayNamestring
Max length1024
environmentsobject
SubTypestring
interpreterstring
Default/bin/sh
interpreterArgsarray
SubTypestring
Default[ "-c" ]
outputDirsarray
SubTypestring
outputFilesarray
SubTypestring
requiredSlotsintegerstring
resourceFilesarray
autoStorageContainerNamestring
blobPrefixstring
fileModestring
filePathstring
httpUrlstring
identityReference
resourceIdstring
storageContainerUrlstring
uploadFilesarray
destination*Required
container*Required
filePatternstring
uploadOptions
Default{ "uploadCondition": "taskcompletion" }
uploadConditionstring
Defaulttaskcompletion
Possible Values
TASK_SUCCESSTASK_FAILURETASK_COMPLETION
DefaultPT1S
Formatduration
Defaulttrue
Formatduration
Defaulttrue
Defaultfalse
SubTypestring