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. Values are: requeue - Terminate running task processes and requeue the tasks. The tasks may run again on other compute nodes, or when task scheduling is re-enabled on this node. Enter offline state as soon as tasks have been terminated. terminate - Terminate running tasks. The tasks will not run again. Enter offline state as soon as tasks have been terminated. taskcompletion - Allow currently running tasks to complete. Schedule no new tasks while waiting. Enter offline state when all tasks have completed. 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.