BatchJobReleaseTask(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of BatchJobReleaseTask.
public BatchJobReleaseTask (string commandLine);
new Azure.Compute.Batch.BatchJobReleaseTask : string -> Azure.Compute.Batch.BatchJobReleaseTask
Public Sub New (commandLine As String)
Parameters
- commandLine
- String
The command line of the Job Release 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
commandLine
is null.
Applies to
Azure SDK for .NET