0

I would like to download the files after the task is complete. How can I do it efficiently?

Unfortunately, task.EnvironmentSettings is null and the following code snipet does not work (see the Microsoft instructions).

IList<environmentsetting> listEnv = task.EnvironmentSettings;

var envList = listEnv.Where(x => x.Name == "AZ_BATCH_TASK_WORKING_DIR").ToList();

also

var fileList = task.FilesToStage 

trigerrs the error: The property FilesToStage cannot be read while the object is in the Bound state.

Nuri Tasdemir
  • 9,720
  • 3
  • 42
  • 67
luksmir
  • 3,104
  • 5
  • 22
  • 38

1 Answers1

0

The following methods provide access to a task's files:

You can list the files in the CloudTask's directory on its compute node with:

Marsh
  • 1
  • 1