A sample app demonstration of Azure Batch Apps Task Decencies and specifying Intermediate output file as Required Files. For a full description of the sample and some of its code please refer to the corresponding article on this blog ( http://sarkar.azurewebsites.net/2015/05/18/deploy-azure-batch-apps-through-batch-apps-portal/ ).
AzureBatchDependenciesStorage includes only one project:
- AzureBatchDependenciesStorage - Azure Batch Cloud Assembly.
You need to specify the access details of Azure storage account associated with your azure batch app service. You will find the details on how to find out this azure storage details here ( http://sarkar.azurewebsites.net/2015/03/16/uploading-large-executable-on-azure-batch-service-app-management-portal/ ). To build the cloud assembly zip file:
- Add Azure Storage access details to DownloadFile method in TaskProcessor.cs file in the AzureBatchDependenciesStorage project.
- Build the AzureBatchDependenciesStorage project.
- Open the output folder of the AzureBatchDependenciesStorage project.
- Select all the DLLs (and optionally PDB files) in the output folder.
- Right-click and choose Send To > Compressed Folder.
To build the application image zip file:
- The dummy test application image ( mri-processing-dummy.zip ) is included in this github repository.
- Open the Azure management portal (manage.windowsazure.com).
- Select Batch Services in the left-hand menu.
- Select your service in the list and click "Manage Batch Apps." This opens the Batch Apps management portal.
- Select Services in the left-hand menu.
- Select your service in the list and click View Details.
- Choose the Manage Applications tab.
- Click New Application.
- Under "Select and upload a cloud assembly," choose your cloud assembly zip file and click Upload.
- Under "Select and upload an application image," choose your application image zip file and click Upload.
(Be sure to leave the version as "default".) - Click Done.
- Open the Azure management portal (manage.windowsazure.com).
- Select Batch Services in the left-hand menu.
- Select your service in the list and click "Manage Batch Apps." This opens the Batch Apps management portal.
- Select Services in the left-hand menu.
- Select your service in the list and click View Details.
- Choose the Manage Applications tab.
- Click Run Jobs.
- Enter Job Name, select Job Type and enter any parameters your job.
- Under "Select the input files for your job" choose your input file. For simplicity, this sample project requires that these two files have these names (brain.nii and tissue.nii) . The GitHub project contains a zip file ( TestInputFiles.zip ) containing two input files and those files could be used here.
- Then you could start the job.
- Final Job output is a file named completion.txt which indicates that job is done
- Each of the four copies the content of input files to new output files ( resliced_tissue.nii, resliced_brain.nii ,skull-stripped_tissue.nii and skull-stripped_brain.nii ).