I want to be able to unzip an input file before running tasks to reduce data transfer in my batching process. To do this I added the following command line to my JobPreparationTask:
CommandLine = "/bin/bash -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y unzip; unzip $AZ_BATCH_TASK_WORKING_DIR//myInput.zip'"
But instead of looking at my task working directory where I have my file (job/task/wd/myInput.zip) is looking at the job preparation folder and I get the following error:
"cannot find or open /mnt/batch/tasks/workitems/myJob/job-1/jobpreparation/wd//myInput.zip"
I have tried using other environmental paths but I always get similar errors. How can I access the job/task/wd to unzip the file?