job "api-win" { datacenters = ["dc1"] type = "batch" constraint { attribute = "${attr.kernel.name}" value = "windows" } constraint { attribute = "${attr.cpu.arch}" value = "amd64" } group "api-win" { task "win" { driver = "raw_exec" config { command = "powershell" args = ["local/curl-7.87.0_4-win64-mingw/bin/curl.exe -H \"Authorization: Bearer $env:NOMAD_TOKEN\" --unix-socket $env:NOMAD_SECRETS_DIR/api.sock -v localhost:4646/v1/agent/health"] } artifact { source = "https://curl.se/windows/dl-7.87.0_4/curl-7.87.0_4-win64-mingw.zip" } identity { env = true } resources { cpu = 16 memory = 32 disk = 64 } } } }