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.