Compartilhar via


BatchJobManagerTask(String, String) Constructor

Definition

Initializes a new instance of BatchJobManagerTask.

public BatchJobManagerTask (string id, string commandLine);
new Azure.Compute.Batch.BatchJobManagerTask : string * string -> Azure.Compute.Batch.BatchJobManagerTask
Public Sub New (id As String, commandLine As String)

Parameters

id
String

A string that uniquely identifies the Job Manager Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters.

commandLine
String

The command line of the Job Manager Task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).

Exceptions

id or commandLine is null.

Applies to