Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.hybrid_aks.agent_pools

Fields

NameDatatypeDescription
agentPoolNametextfield from the properties object
connectedClusterResourceUritextfield from the properties object
counttextfield from the properties object
enable_auto_scalingtextfield from the properties object
extended_locationtextfield from the properties object
kubernetes_versiontextfield from the properties object
max_counttextfield from the properties object
max_podstextfield from the properties object
min_counttextfield from the properties object
node_labelstextfield from the properties object
node_taintstextfield from the properties object
os_skutextfield from the properties object
os_typetextfield from the properties object
provisioning_statetextfield from the properties object
statustextfield from the properties object
tagstextResource tags
vm_sizetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTagentPoolName, connectedClusterResourceUriGets the specified agent pool in the provisioned cluster
list_by_provisioned_clusterSELECTconnectedClusterResourceUriGets the list of agent pools in the specified provisioned cluster
create_or_updateINSERTagentPoolName, connectedClusterResourceUriCreates or updates the agent pool in the provisioned cluster
deleteDELETEagentPoolName, connectedClusterResourceUriDeletes the specified agent pool in the provisioned cluster

SELECT examples

Gets the list of agent pools in the specified provisioned cluster

SELECT
agentPoolName,
connectedClusterResourceUri,
count,
enable_auto_scaling,
extended_location,
kubernetes_version,
max_count,
max_pods,
min_count,
node_labels,
node_taints,
os_sku,
os_type,
provisioning_state,
status,
tags,
vm_size
FROM azure.hybrid_aks.vw_agent_pools
WHERE connectedClusterResourceUri = '{{ connectedClusterResourceUri }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_aks.agent_pools (
agentPoolName,
connectedClusterResourceUri,
properties,
tags,
extendedLocation
)
SELECT
'{{ agentPoolName }}',
'{{ connectedClusterResourceUri }}',
'{{ properties }}',
'{{ tags }}',
'{{ extendedLocation }}'
;

DELETE example

Deletes the specified agent_pools resource.

/*+ delete */
DELETE FROM azure.hybrid_aks.agent_pools
WHERE agentPoolName = '{{ agentPoolName }}'
AND connectedClusterResourceUri = '{{ connectedClusterResourceUri }}';