简体   繁体   中英

Download Files from Azure Batch

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.

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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM