你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Compute Node - List
Lists the Compute Nodes in the specified Pool.
GET {batchUrl}/pools/{poolId}/nodes?api-version=2024-07-01.20.0
GET {batchUrl}/pools/{poolId}/nodes?$filter={$filter}&$select={$select}&maxresults={maxresults}&timeout={timeout}&api-version=2024-07-01.20.0
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
batch
|
path | True |
string |
The base URL for all Azure Batch service requests. |
pool
|
path | True |
string |
The ID of the Pool from which you want to list Compute Nodes. |
api-version
|
query | True |
string |
Client API Version. |
$filter
|
query |
string |
An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. |
|
$select
|
query |
string |
An OData $select clause. |
|
maxresults
|
query |
integer int32 |
The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned. |
|
timeout
|
query |
integer int32 |
The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead. |
Request Header
Media Types: "application/json; odata=minimalmetadata"
Name | Required | Type | Description |
---|---|---|---|
client-request-id |
string uuid |
The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. |
|
return-client-request-id |
boolean |
Whether the server should return the client-request-id in the response. |
|
ocp-date |
string date-time-rfc1123 |
The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
A response containing the list of Compute Nodes. Headers
|
|
Other Status Codes |
The error from the Batch service. |
Security
azure_auth
Microsoft Entra OAuth 2.0 auth code flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | Impersonate your user account |
Authorization
Type:
apiKey
In:
header
Examples
Node list
Sample request
GET account.region.batch.azure.com/pools/poolId/nodes?api-version=2024-07-01.20.0
Sample response
{
"value": [
{
"id": "tvm-1695681911_1-20161122t193202z",
"url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_1-20161122t193202z",
"state": "idle",
"schedulingState": "enabled",
"stateTransitionTime": "2016-11-22T22:22:27.2236818Z",
"lastBootTime": "2016-11-22T22:22:24.4634125Z",
"allocationTime": "2016-11-22T19:32:02.8155319Z",
"ipAddress": "1.1.1.1",
"affinityId": "TVM:tvm-1695681911_1-20161122t193202z",
"vmSize": "small",
"totalTasksRun": 0,
"totalTasksSucceeded": 0,
"runningTasksCount": 0,
"runningTaskSlotsCount": 0,
"isDedicated": true,
"startTask": {
"commandLine": "cmd /c echo hello",
"userIdentity": {
"autoUser": {
"scope": "task",
"elevationLevel": "nonadmin"
}
},
"maxTaskRetryCount": 0,
"waitForSuccess": false
},
"startTaskInfo": {
"state": "completed",
"startTime": "2016-11-22T22:22:27.2236818Z",
"endTime": "2016-11-22T22:22:27.567189Z",
"exitCode": 0,
"retryCount": 0
},
"nodeAgentInfo": {
"version": "1.2.0.0",
"lastUpdateTime": "2016-11-22T22:22:24.4634125Z"
}
},
{
"id": "tvm-1695681911_2-20161122t193202z",
"url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_2-20161122t193202z",
"state": "idle",
"schedulingState": "enabled",
"stateTransitionTime": "2016-11-22T19:37:31.4285526Z",
"lastBootTime": "2016-11-22T19:37:28.623369Z",
"allocationTime": "2016-11-22T19:32:02.8155319Z",
"ipAddress": "1.1.1.1",
"affinityId": "TVM:tvm-1695681911_2-20161122t193202z",
"vmSize": "small",
"totalTasksRun": 0,
"totalTasksSucceeded": 0,
"runningTasksCount": 0,
"runningTaskSlotsCount": 0,
"isDedicated": true,
"startTask": {
"commandLine": "cmd /c echo hello",
"userIdentity": {
"autoUser": {
"scope": "task",
"elevationLevel": "nonadmin"
}
},
"maxTaskRetryCount": 0,
"waitForSuccess": false
},
"startTaskInfo": {
"state": "completed",
"startTime": "2016-11-22T19:37:31.4285526Z",
"endTime": "2016-11-22T19:37:31.838028Z",
"exitCode": 0,
"retryCount": 0
},
"nodeAgentInfo": {
"version": "1.2.0.0",
"lastUpdateTime": "2016-11-22T22:22:24.4634125Z"
}
},
{
"id": "tvm-1695681911_3-20161122t193202z",
"url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_3-20161122t193202z",
"state": "idle",
"schedulingState": "enabled",
"stateTransitionTime": "2016-11-22T19:36:51.0013378Z",
"lastBootTime": "2016-11-22T19:36:48.21721Z",
"allocationTime": "2016-11-22T19:32:02.8155319Z",
"ipAddress": "1.1.1.1",
"affinityId": "TVM:tvm-1695681911_3-20161122t193202z",
"vmSize": "small",
"totalTasksRun": 0,
"totalTasksSucceeded": 0,
"runningTasksCount": 0,
"runningTaskSlotsCount": 0,
"isDedicated": true,
"startTask": {
"commandLine": "cmd /c echo hello",
"userIdentity": {
"autoUser": {
"scope": "task",
"elevationLevel": "nonadmin"
}
},
"maxTaskRetryCount": 0,
"waitForSuccess": false
},
"startTaskInfo": {
"state": "completed",
"startTime": "2016-11-22T19:36:51.0013378Z",
"endTime": "2016-11-22T19:36:51.2363447Z",
"exitCode": 0,
"retryCount": 0
},
"nodeAgentInfo": {
"version": "1.2.0.0",
"lastUpdateTime": "2016-11-22T22:22:24.4634125Z"
}
}
]
}
Definitions
Name | Description |
---|---|
Auto |
The scope for the auto user |
Auto |
Specifies the parameters for the auto user that runs a Task on the Batch service. |
Batch |
An error response received from the Azure Batch service. |
Batch |
An item of additional information included in an Azure Batch error response. |
Certificate |
A reference to a Certificate to be installed on Compute Nodes in a Pool. |
Certificate |
The location of the Certificate store on the Compute Node into which to install the Certificate. |
Certificate |
Which user Accounts on the Compute Node should have access to the private data of the Certificate. |
Compute |
A Compute Node in the Batch service. |
Compute |
The endpoint configuration for the Compute Node. |
Compute |
An error encountered by a Compute Node. |
Compute |
The reference to a user assigned identity associated with the Batch pool which a compute node will use. |
Compute |
The result of listing the Compute Nodes in a Pool. |
Compute |
The current state of the Compute Node. |
Container |
The entry of path and mount mode you want to mount into task container. |
Container |
The paths which will be mounted to container task's container. |
Container |
A private container registry. |
Container |
The location of the container Task working directory. |
Elevation |
The elevation level of the user. |
Environment |
An environment variable to be set on a Task process. |
Error |
The category of the error. |
Error |
An error message received in an Azure Batch error response. |
Image |
A reference to an Azure Virtual Machines Marketplace Image or a Azure Compute Gallery Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List Supported Images' operation. |
Inbound |
An inbound endpoint on a Compute Node. |
Inbound |
The protocol of the endpoint. |
Name |
Represents a name-value pair. |
Node |
Information about the Compute Node agent. |
Resource |
A single file or multiple files to be downloaded to a Compute Node. |
Scheduling |
Whether the Compute Node is available for Task scheduling. |
Start |
A Task which is run when a Node joins a Pool in the Azure Batch service, or when the Compute Node is rebooted or reimaged. |
Start |
Information about a StartTask running on a Compute Node. |
Start |
The state of the StartTask on the Compute Node. |
Task |
Contains information about the container which a Task is executing. |
Task |
The container settings for a Task. |
Task |
Information about the execution of a Task. |
Task |
The result of Task execution. |
Task |
Information about a Task failure. |
Task |
Information about a Task running on a Compute Node. |
Task |
The state of the Task. |
User |
The definition of the user identity under which the Task is run. |
Virtual |
Info about the current state of the virtual machine. |
AutoUserScope
The scope for the auto user
Name | Type | Description |
---|---|---|
pool |
string |
Specifies that the Task runs as the common auto user Account which is created on every Compute Node in a Pool. |
task |
string |
Specifies that the service should create a new user for the Task. |
AutoUserSpecification
Specifies the parameters for the auto user that runs a Task on the Batch service.
Name | Type | Description |
---|---|---|
elevationLevel |
The elevation level of the auto user. |
|
scope |
The scope for the auto user |
BatchError
An error response received from the Azure Batch service.
Name | Type | Description |
---|---|---|
code |
string |
An identifier for the error. Codes are invariant and are intended to be consumed programmatically. |
message |
A message describing the error, intended to be suitable for display in a user interface. |
|
values |
A collection of key-value pairs containing additional details about the error. |
BatchErrorDetail
An item of additional information included in an Azure Batch error response.
Name | Type | Description |
---|---|---|
key |
string |
An identifier specifying the meaning of the Value property. |
value |
string |
The additional information included with the error response. |
CertificateReference
A reference to a Certificate to be installed on Compute Nodes in a Pool.
Name | Type | Description |
---|---|---|
storeLocation |
The location of the Certificate store on the Compute Node into which to install the Certificate. |
|
storeName |
string |
The name of the Certificate store on the Compute Node into which to install the Certificate. |
thumbprint |
string |
The thumbprint of the Certificate. |
thumbprintAlgorithm |
string |
The algorithm with which the thumbprint is associated. This must be sha1. |
visibility |
Which user Accounts on the Compute Node should have access to the private data of the Certificate. |
CertificateStoreLocation
The location of the Certificate store on the Compute Node into which to install the Certificate.
Name | Type | Description |
---|---|---|
currentuser |
string |
Certificates should be installed to the CurrentUser Certificate store. |
localmachine |
string |
Certificates should be installed to the LocalMachine Certificate store. |
CertificateVisibility
Which user Accounts on the Compute Node should have access to the private data of the Certificate.
Name | Type | Description |
---|---|---|
remoteuser |
string |
The Certificate should be visible to the user accounts under which users remotely access the Compute Node. |
starttask |
string |
The Certificate should be visible to the user account under which the StartTask is run. Note that if AutoUser Scope is Pool for both the StartTask and a Task, this certificate will be visible to the Task as well. |
task |
string |
The Certificate should be visible to the user accounts under which Job Tasks are run. |
ComputeNode
A Compute Node in the Batch service.
Name | Type | Description |
---|---|---|
affinityId |
string |
An identifier which can be passed when adding a Task to request that the Task be scheduled on this Compute Node. |
allocationTime |
string |
The time at which this Compute Node was allocated to the Pool. |
certificateReferences |
The list of Certificates installed on the Compute Node. Warning: This property is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead. |
|
endpointConfiguration |
The endpoint configuration for the Compute Node. |
|
errors |
The list of errors that are currently being encountered by the Compute Node. |
|
id |
string |
The ID of the Compute Node. |
ipAddress |
string |
The IP address that other Nodes can use to communicate with this Compute Node. |
isDedicated |
boolean |
Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a Spot/Low-priority Compute Node. |
lastBootTime |
string |
The last time at which the Compute Node was started. |
nodeAgentInfo |
Information about the Compute Node agent version and the time the Compute Node upgraded to a new version. |
|
recentTasks |
A list of Tasks whose state has recently changed. |
|
runningTaskSlotsCount |
integer |
The total number of scheduling slots used by currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. |
runningTasksCount |
integer |
The total number of currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. |
schedulingState |
Whether the Compute Node is available for Task scheduling. |
|
startTask |
The Task specified to run on the Compute Node as it joins the Pool. |
|
startTaskInfo |
Runtime information about the execution of the StartTask on the Compute Node. |
|
state |
The current state of the Compute Node. |
|
stateTransitionTime |
string |
The time at which the Compute Node entered its current state. |
totalTasksRun |
integer |
The total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. |
totalTasksSucceeded |
integer |
The total number of Job Tasks which completed successfully (with exitCode 0) on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks. |
url |
string |
The URL of the Compute Node. |
virtualMachineInfo |
Info about the current state of the virtual machine. |
|
vmSize |
string |
The size of the virtual machine hosting the Compute Node. |
ComputeNodeEndpointConfiguration
The endpoint configuration for the Compute Node.
Name | Type | Description |
---|---|---|
inboundEndpoints |
The list of inbound endpoints that are accessible on the Compute Node. |
ComputeNodeError
An error encountered by a Compute Node.
Name | Type | Description |
---|---|---|
code |
string |
An identifier for the Compute Node error. Codes are invariant and are intended to be consumed programmatically. |
errorDetails |
The list of additional error details related to the Compute Node error. |
|
message |
string |
A message describing the Compute Node error, intended to be suitable for display in a user interface. |
ComputeNodeIdentityReference
The reference to a user assigned identity associated with the Batch pool which a compute node will use.
Name | Type | Description |
---|---|---|
resourceId |
string |
The ARM resource id of the user assigned identity. |
ComputeNodeListResult
The result of listing the Compute Nodes in a Pool.
Name | Type | Description |
---|---|---|
odata.nextLink |
string |
The URL to get the next set of results. |
value |
The list of Compute Nodes. |
ComputeNodeState
The current state of the Compute Node.
Name | Type | Description |
---|---|---|
creating |
string |
The Batch service has obtained the underlying virtual machine from Azure Compute, but it has not yet started to join the Pool. |
deallocated |
string |
The Compute Node is deallocated. |
deallocating |
string |
The Compute Node is deallocating. |
idle |
string |
The Compute Node is not currently running a Task. |
leavingpool |
string |
The Compute Node is leaving the Pool, either because the user explicitly removed it or because the Pool is resizing or autoscaling down. |
offline |
string |
The Compute Node is not currently running a Task, and scheduling of new Tasks to the Compute Node is disabled. |
preempted |
string |
The Spot/Low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available. |
rebooting |
string |
The Compute Node is rebooting. |
reimaging |
string |
The Compute Node is reimaging. |
running |
string |
The Compute Node is running one or more Tasks (other than a StartTask). |
starting |
string |
The Batch service is starting on the underlying virtual machine. |
starttaskfailed |
string |
The StartTask has failed on the Compute Node (and exhausted all retries), and waitForSuccess is set. The Compute Node is not usable for running Tasks. |
unknown |
string |
The Batch service has lost contact with the Compute Node, and does not know its true state. |
unusable |
string |
The Compute Node cannot be used for Task execution due to errors. |
upgradingos |
string |
The Compute Node is undergoing an OS upgrade operation. |
waitingforstarttask |
string |
The StartTask has started running on the Compute Node, but waitForSuccess is set and the StartTask has not yet completed. |
ContainerHostBatchBindMountEntry
The entry of path and mount mode you want to mount into task container.
Name | Type | Description |
---|---|---|
isReadOnly |
boolean |
Mount this source path as read-only mode or not. Default value is false (read/write mode). |
source |
The path which be mounted to container customer can select. |
ContainerHostDataPath
The paths which will be mounted to container task's container.
Name | Type | Description |
---|---|---|
Applications |
string |
The applications path. |
JobPrep |
string |
The job-prep task path. |
Shared |
string |
The path for multi-instances task to shared their files. |
Startup |
string |
The path for start task. |
Task |
string |
The task path. |
VfsMounts |
string |
The path contains all virtual file systems are mounted on this node. |
ContainerRegistry
A private container registry.
Name | Type | Description |
---|---|---|
identityReference |
The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password. |
|
password |
string |
The password to log into the registry server. |
registryServer |
string |
The registry URL. |
username |
string |
The user name to log into the registry server. |
ContainerWorkingDirectory
The location of the container Task working directory.
Name | Type | Description |
---|---|---|
containerImageDefault |
string |
Use the working directory defined in the container Image. Beware that this directory will not contain the Resource Files downloaded by Batch. |
taskWorkingDirectory |
string |
Use the standard Batch service Task working directory, which will contain the Task Resource Files populated by Batch. |
ElevationLevel
The elevation level of the user.
Name | Type | Description |
---|---|---|
admin |
string |
The user is a user with elevated access and operates with full Administrator permissions. |
nonadmin |
string |
The user is a standard user without elevated access. |
EnvironmentSetting
An environment variable to be set on a Task process.
Name | Type | Description |
---|---|---|
name |
string |
The name of the environment variable. |
value |
string |
The value of the environment variable. |
ErrorCategory
The category of the error.
Name | Type | Description |
---|---|---|
servererror |
string |
The error is due to an internal server issue. |
usererror |
string |
The error is due to a user issue, such as misconfiguration. |
ErrorMessage
An error message received in an Azure Batch error response.
Name | Type | Description |
---|---|---|
lang |
string |
The language code of the error message |
value |
string |
The text of the message. |
ImageReference
A reference to an Azure Virtual Machines Marketplace Image or a Azure Compute Gallery Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List Supported Images' operation.
Name | Type | Description |
---|---|---|
communityGalleryImageId |
string |
The community gallery image unique identifier |
exactVersion |
string |
The specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'. |
offer |
string |
The offer type of the Azure Virtual Machines Marketplace Image. |
publisher |
string |
The publisher of the Azure Virtual Machines Marketplace Image. |
sharedGalleryImageId |
string |
The shared gallery image unique identifier |
sku |
string |
The SKU of the Azure Virtual Machines Marketplace Image. |
version |
string |
The version of the Azure Virtual Machines Marketplace Image. |
virtualMachineImageId |
string |
The ARM resource identifier of the Azure Compute Gallery Image. Compute Nodes in the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} for always defaulting to the latest image version. |
InboundEndpoint
An inbound endpoint on a Compute Node.
Name | Type | Description |
---|---|---|
backendPort |
integer |
The backend port number of the endpoint. |
frontendPort |
integer |
The public port number of the endpoint. |
name |
string |
The name of the endpoint. |
protocol |
The protocol of the endpoint. |
|
publicFQDN |
string |
The public fully qualified domain name for the Compute Node. |
publicIPAddress |
string |
The public IP address of the Compute Node. |
InboundEndpointProtocol
The protocol of the endpoint.
Name | Type | Description |
---|---|---|
tcp |
string |
Use TCP for the endpoint. |
udp |
string |
Use UDP for the endpoint. |
NameValuePair
Represents a name-value pair.
Name | Type | Description |
---|---|---|
name |
string |
The name in the name-value pair. |
value |
string |
The value in the name-value pair. |
NodeAgentInformation
Information about the Compute Node agent.
Name | Type | Description |
---|---|---|
lastUpdateTime |
string |
The time when the Compute Node agent was updated on the Compute Node. |
version |
string |
The version of the Batch Compute Node agent running on the Compute Node. |
ResourceFile
A single file or multiple files to be downloaded to a Compute Node.
Name | Type | Description |
---|---|---|
autoStorageContainerName |
string |
The storage container name in the auto storage Account. |
blobPrefix |
string |
The blob prefix to use when downloading blobs from an Azure Storage container. Only the blobs whose names begin with the specified prefix will be downloaded. |
fileMode |
string |
The file permission mode attribute in octal format. |
filePath |
string |
The location on the Compute Node to which to download the file(s), relative to the Task's working directory. |
httpUrl |
string |
The URL of the file to download. |
identityReference |
The reference to the user assigned identity to use to access Azure Blob Storage specified by storageContainerUrl or httpUrl |
|
storageContainerUrl |
string |
The URL of the blob container within Azure Blob Storage. |
SchedulingState
Whether the Compute Node is available for Task scheduling.
Name | Type | Description |
---|---|---|
disabled |
string |
No new Tasks will be scheduled on the Compute Node. Tasks already running on the Compute Node may still run to completion. All Compute Nodes start with scheduling enabled. |
enabled |
string |
Tasks can be scheduled on the Compute Node. |
StartTask
A Task which is run when a Node joins a Pool in the Azure Batch service, or when the Compute Node is rebooted or reimaged.
Name | Type | Description |
---|---|---|
commandLine |
string |
The command line of the StartTask. |
containerSettings |
The settings for the container under which the StartTask runs. |
|
environmentSettings |
A list of environment variable settings for the StartTask. |
|
maxTaskRetryCount |
integer |
The maximum number of times the Task may be retried. |
resourceFiles |
A list of files that the Batch service will download to the Compute Node before running the command line. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers. |
|
userIdentity |
The user identity under which the StartTask runs. |
|
waitForSuccess |
boolean |
Whether the Batch service should wait for the StartTask to complete successfully (that is, to exit with exit code 0) before scheduling any Tasks on the Compute Node. |
StartTaskInformation
Information about a StartTask running on a Compute Node.
Name | Type | Description |
---|---|---|
containerInfo |
Information about the container under which the Task is executing. |
|
endTime |
string |
The time at which the StartTask stopped running. |
exitCode |
integer |
The exit code of the program specified on the StartTask command line. |
failureInfo |
Information describing the Task failure, if any. |
|
lastRetryTime |
string |
The most recent time at which a retry of the Task started running. |
result |
The result of the Task execution. |
|
retryCount |
integer |
The number of times the Task has been retried by the Batch service. |
startTime |
string |
The time at which the StartTask started running. |
state |
The state of the StartTask on the Compute Node. |
StartTaskState
The state of the StartTask on the Compute Node.
Name | Type | Description |
---|---|---|
completed |
string |
The StartTask has exited with exit code 0, or the StartTask has failed and the retry limit has reached, or the StartTask process did not run due to Task preparation errors (such as resource file download failures). |
running |
string |
The StartTask is currently running. |
TaskContainerExecutionInformation
Contains information about the container which a Task is executing.
Name | Type | Description |
---|---|---|
containerId |
string |
The ID of the container. |
error |
string |
Detailed error information about the container. |
state |
string |
The state of the container. |
TaskContainerSettings
The container settings for a Task.
Name | Type | Description |
---|---|---|
containerHostBatchBindMounts |
The paths you want to mounted to container task. |
|
containerRunOptions |
string |
Additional options to the container create command. |
imageName |
string |
The Image to use to create the container in which the Task will run. |
registry |
The private registry which contains the container Image. |
|
workingDirectory |
The location of the container Task working directory. |
TaskExecutionInformation
Information about the execution of a Task.
Name | Type | Description |
---|---|---|
containerInfo |
Information about the container under which the Task is executing. |
|
endTime |
string |
The time at which the Task completed. |
exitCode |
integer |
The exit code of the program specified on the Task command line. |
failureInfo |
Information describing the Task failure, if any. |
|
lastRequeueTime |
string |
The most recent time at which the Task has been requeued by the Batch service as the result of a user request. |
lastRetryTime |
string |
The most recent time at which a retry of the Task started running. |
requeueCount |
integer |
The number of times the Task has been requeued by the Batch service as the result of a user request. |
result |
The result of the Task execution. |
|
retryCount |
integer |
The number of times the Task has been retried by the Batch service. |
startTime |
string |
The time at which the Task started running. |
TaskExecutionResult
The result of Task execution.
Name | Type | Description |
---|---|---|
failure |
string |
There was an error during processing of the Task. The failure may have occurred before the Task process was launched, while the Task process was executing, or after the Task process exited. |
success |
string |
The Task ran successfully. |
TaskFailureInformation
Information about a Task failure.
Name | Type | Description |
---|---|---|
category |
The category of the Task error. |
|
code |
string |
An identifier for the Task error. Codes are invariant and are intended to be consumed programmatically. |
details |
A list of additional details related to the error. |
|
message |
string |
A message describing the Task error, intended to be suitable for display in a user interface. |
TaskInformation
Information about a Task running on a Compute Node.
Name | Type | Description |
---|---|---|
executionInfo |
Information about the execution of the Task. |
|
jobId |
string |
The ID of the Job to which the Task belongs. |
subtaskId |
integer |
The ID of the subtask if the Task is a multi-instance Task. |
taskId |
string |
The ID of the Task. |
taskState |
The current state of the Task. |
|
taskUrl |
string |
The URL of the Task. |
TaskState
The state of the Task.
Name | Type | Description |
---|---|---|
active |
string |
The Task is queued and able to run, but is not currently assigned to a Compute Node. A Task enters this state when it is created, when it is enabled after being disabled, or when it is awaiting a retry after a failed run. |
completed |
string |
The Task is no longer eligible to run, usually because the Task has finished successfully, or the Task has finished unsuccessfully and has exhausted its retry limit. A Task is also marked as completed if an error occurred launching the Task, or when the Task has been terminated. |
preparing |
string |
The Task has been assigned to a Compute Node, but is waiting for a required Job Preparation Task to complete on the Compute Node. If the Job Preparation Task succeeds, the Task will move to running. If the Job Preparation Task fails, the Task will return to active and will be eligible to be assigned to a different Compute Node. |
running |
string |
The Task is running on a Compute Node. This includes task-level preparation such as downloading resource files or deploying Packages specified on the Task - it does not necessarily mean that the Task command line has started executing. |
UserIdentity
The definition of the user identity under which the Task is run.
Name | Type | Description |
---|---|---|
autoUser |
The auto user under which the Task is run. |
|
username |
string |
The name of the user identity under which the Task is run. |
VirtualMachineInfo
Info about the current state of the virtual machine.
Name | Type | Description |
---|---|---|
imageReference |
The reference to the Azure Virtual Machine's Marketplace Image. |
|
scaleSetVmResourceId |
string |
The resource ID of the Compute Node's current Virtual Machine Scale Set VM. Only defined if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'. |