Task scheduling for batch compute nodes - az batch node scheduling

Manage task scheduling for a Batch compute node.

Commands

az batch node scheduling disable Disables task scheduling on the specified compute node.
az batch node scheduling enable Enables task scheduling on the specified compute node.

az batch node scheduling disable

Disables task scheduling on the specified compute node.

az batch node scheduling disable --node-id
--pool-id
[--account-endpoint]
[--account-key]
[--account-name]
[--node-disable-scheduling-option {'requeue', 'taskCompletion', 'terminate'}]

Required Parameters

--node-id

The ID of the compute node on which you want to disable task scheduling.

--pool-id

The ID of the pool that contains the compute node.

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.

--node-disable-scheduling-option

What to do with currently running tasks when disabling task scheduling on the compute node. The default value is requeue.

accepted values: 'requeue', 'taskCompletion', 'terminate'

az batch node scheduling enable

Enables task scheduling on the specified compute node.

az batch node scheduling enable --node-id
--pool-id
[--account-endpoint]
[--account-key]
[--account-name]

Required Parameters

--node-id

The ID of the compute node on which you want to enable task scheduling.

--pool-id

The ID of the pool that contains the compute node.

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.