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.

You can disable Task scheduling on a Compute Node only if its current scheduling state is enabled.

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

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
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az batch node scheduling enable

Enables Task scheduling on the specified Compute Node.

You can enable Task scheduling on a Compute Node only if its current scheduling state is disabled.

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

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.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.