1

I am trying a task in azure batch, I want to add Container settings for the batch task using CLI.

I don't see any information on how to add the container settings using CLI. can anyone help me?

Pradeep
  • 9,667
  • 13
  • 27
  • 34
Raga
  • 11
  • 2
  • What do you mean the Container setting? For what purpose? – Charles Xu Dec 10 '18 at 01:34
  • I want to run docker tasks using CLI but I think its not possible to run container tasks.I have seen only SDK support like .net, java , python, nodeJS – Raga Dec 15 '18 at 18:25
  • Why not, you can use the custom image that installed Azure CLI to create the Batch node. Then you can run CLI task in it. Also with Docker. – Charles Xu Dec 16 '18 at 11:04

1 Answers1

1

This is not currently available as a command line parameter to the CLI. Full functionality is possible by specifying the Task-Add REST API JSON to the --json-file parameter(https://learn.microsoft.com/en-us/rest/api/batchservice/task/add).

brklein
  • 310
  • 1
  • 6
  • Thank you for responding. My goal was to create a release pipeline in azure devops and write a CLI script to submit jobs to azure batch – Raga Dec 15 '18 at 18:27
  • Hmm, in that case Ragu's comment above would likely work best. Otherwise you would likely need a script to write the json file which is less than ideal for your use case. – brklein Dec 18 '18 at 22:42