Skip to main content

pools

Creates, updates, deletes, gets or lists a pools resource.

Overview

Namepools
TypeResource
Idazure.batch.pools

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
accountNametextfield from the properties object
allocation_statetextfield from the properties object
allocation_state_transition_timetextfield from the properties object
application_licensestextfield from the properties object
application_packagestextfield from the properties object
auto_scale_runtextfield from the properties object
certificatestextfield from the properties object
creation_timetextfield from the properties object
current_dedicated_nodestextfield from the properties object
current_low_priority_nodestextfield from the properties object
current_node_communication_modetextfield from the properties object
deployment_configurationtextfield from the properties object
display_nametextfield from the properties object
etagtextThe ETag of the resource, used for concurrency statements.
identitytextThe identity of the Batch pool, if configured. If the pool identity is updated during update an existing pool, only the new vms which are created after the pool shrinks to 0 will have the updated identities
inter_node_communicationtextfield from the properties object
last_modifiedtextfield from the properties object
metadatatextfield from the properties object
mount_configurationtextfield from the properties object
network_configurationtextfield from the properties object
poolNametextfield from the properties object
provisioning_statetextfield from the properties object
provisioning_state_transition_timetextfield from the properties object
resize_operation_statustextfield from the properties object
resourceGroupNametextfield from the properties object
resource_tagstextfield from the properties object
scale_settingstextfield from the properties object
start_tasktextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
target_node_communication_modetextfield from the properties object
task_scheduling_policytextfield from the properties object
task_slots_per_nodetextfield from the properties object
typetextThe type of the resource.
upgrade_policytextfield from the properties object
user_accountstextfield from the properties object
vm_sizetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, poolName, resourceGroupName, subscriptionIdGets information about the specified pool.
list_by_batch_accountSELECTaccountName, resourceGroupName, subscriptionIdLists all of the pools in the specified account.
createINSERTaccountName, poolName, resourceGroupName, subscriptionIdCreates a new pool inside the specified account.
deleteDELETEaccountName, poolName, resourceGroupName, subscriptionIdDeletes the specified pool.
updateUPDATEaccountName, poolName, resourceGroupName, subscriptionIdUpdates the properties of an existing pool.
disable_auto_scaleEXECaccountName, poolName, resourceGroupName, subscriptionIdDisables automatic scaling for a pool.
stop_resizeEXECaccountName, poolName, resourceGroupName, subscriptionIdThis does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.

SELECT examples

Lists all of the pools in the specified account.

SELECT
id,
name,
accountName,
allocation_state,
allocation_state_transition_time,
application_licenses,
application_packages,
auto_scale_run,
certificates,
creation_time,
current_dedicated_nodes,
current_low_priority_nodes,
current_node_communication_mode,
deployment_configuration,
display_name,
etag,
identity,
inter_node_communication,
last_modified,
metadata,
mount_configuration,
network_configuration,
poolName,
provisioning_state,
provisioning_state_transition_time,
resize_operation_status,
resourceGroupName,
resource_tags,
scale_settings,
start_task,
subscriptionId,
tags,
target_node_communication_mode,
task_scheduling_policy,
task_slots_per_node,
type,
upgrade_policy,
user_accounts,
vm_size
FROM azure.batch.vw_pools
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new pools resource.

/*+ create */
INSERT INTO azure.batch.pools (
accountName,
poolName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags
)
SELECT
'{{ accountName }}',
'{{ poolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}'
;

UPDATE example

Updates a pools resource.

/*+ update */
UPDATE azure.batch.pools
SET
properties = '{{ properties }}',
identity = '{{ identity }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified pools resource.

/*+ delete */
DELETE FROM azure.batch.pools
WHERE accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';