question

vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT asked ·

From Batch task created from portal, how can we redirect the output file to storage account?

From Batch task created from portal, how can we redirect the output file to storage account?

[Note: As we migrate from MSDN, this question has been posted by an Azure Cloud Engineer as a frequently asked question]
Source: MSDN Thread Link


azure-batch
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

karishmatiwari-msft avatar image
0 Votes"
karishmatiwari-msft answered ·

Output files of batch task to storage account cannot be done from the portal directly.
You can achieve them in many ways like explained below.

  1. One way is using API:
    You can achieve this when you create a task via API where you can add configuration for saving files to the storage account while creating the task itself.
    You can refer this document (https://docs.microsoft.com/en-us/azure/batch/batch-task-output) for more details.

  2. Another way is using Custom Script:
    Using custom script you can run them along with the task executable to store the files in storage account. You can refer this here(https://docs.microsoft.com/en-us/azure/batch/batch-task-output#implement-a-custom-file-movement-solution)

  3. Another Alternative is by Startup task:
    You can add a startup task for a node which can mount storage account to a node in a particular directory, then in your task executable you can move the output files to that mounted directory.

Source : MSDN Thread Link


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.