Batch task files - az batch task file

Manage your Batch task files.

Commands

az batch task file delete Deletes the specified task file from the compute node where the task ran.
az batch task file download Download the content of the specified task file.
az batch task file list Lists the files in a task's directory on its compute node.
az batch task file show Gets the properties of the specified task file.

az batch task file delete

Deletes the specified task file from the compute node where the task ran.

az batch task file delete --file-path
--job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--recursive]
[--yes]

Required Parameters

--file-path

The path to the task file that you want to delete.

--job-id

The ID of the job that contains the task.

--task-id

The ID of the task whose file you want to delete.

Optional Parameters

--account-endpoint

Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.

--account-key

Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.

--account-name

Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.

--recursive

Whether to delete children of a directory. If the filePath parameter represents a directory instead of a file, you can set recursive to true to delete the directory and all of the files and subdirectories in it. If recursive is false then the directory must be empty or deletion will fail.

--yes -y

Do not prompt for confirmation.

az batch task file download

Download the content of the specified task file.

az batch task file download --destination
--file-path
--job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--end-range]
[--if-modified-since]
[--if-unmodified-since]
[--start-range]

Required Parameters

--destination

The path to the destination file or directory.

--file-path

The path to the task file that you want to get the content of.

--job-id

The ID of the job that contains the task.

--task-id

The ID of the task whose file you want to retrieve.

Optional Parameters

--account-endpoint

Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.

--account-key

Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.

--account-name

Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.

--end-range

The byte range to be retrieved. If not set the file will be retrieved to the end.

--if-modified-since

A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.

--if-unmodified-since

A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.

--start-range

The byte range to be retrieved. If not set the file will be retrieved from the beginning.

az batch task file list

Lists the files in a task's directory on its compute node.

az batch task file list --job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--filter]
[--recursive]

Required Parameters

--job-id

The ID of the job that contains the task.

--task-id

The ID of the task whose files you want to list.

Optional Parameters

--account-endpoint

Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.

--account-key

Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.

--account-name

Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.

--filter

An OData $filter clause.

--recursive

Whether to list children of a directory. This parameter can be used in combination with the filter parameter to list specific type of files.

az batch task file show

Gets the properties of the specified task file.

az batch task file show --file-path
--job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--if-modified-since]
[--if-unmodified-since]

Required Parameters

--file-path

The path to the task file that you want to get the properties of.

--job-id

The ID of the job that contains the task.

--task-id

The ID of the task whose file you want to get the properties of.

Optional Parameters

--account-endpoint

Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.

--account-key

Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.

--account-name

Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.

--if-modified-since

A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.

--if-unmodified-since

A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.