Executing some commands on Batch node

Category: azure batch

Question

saurabh_vartak on Mon, 29 Jan 2018 15:44:26


Hi,

We wish to execute a few sets of CLI based commands on each of Azure Nodes  after they are created. These commands need to be run pro-grammatically. Wanted to know how this can be done.

Regards,

Saurabh


Replies

SamCogan on Mon, 29 Jan 2018 17:48:43


You need to look at using a Start Task, this is a command that runs on each batch VM at the time it is created - https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#start-task