你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BatchStartTask(String) Constructor

Definition

Initializes a new instance of BatchStartTask.

public BatchStartTask(string commandLine);
new Azure.Compute.Batch.BatchStartTask : string -> Azure.Compute.Batch.BatchStartTask
Public Sub New (commandLine As String)

Parameters

commandLine
String

The command line of the StartTask. 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://learn.microsoft.com/azure/batch/batch-compute-node-environment-variables).

Exceptions

commandLine is null.

Applies to