Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.hybrid_aks.agent_pools

Fields

The following fields are returned by SELECT queries:

Gets the agentPool resource.

NameDatatypeDescription
extendedLocationobjectExtended location pointing to the underlying infrastructure
propertiesobjectProperties of the agent pool resource
tagsobjectResource tags

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectconnectedClusterResourceUri, agentPoolNameGets the specified agent pool in the provisioned cluster
list_by_provisioned_clusterselectconnectedClusterResourceUriGets the list of agent pools in the specified provisioned cluster
create_or_updateinsertconnectedClusterResourceUri, agentPoolNameCreates or updates the agent pool in the provisioned cluster
deletedeleteconnectedClusterResourceUri, agentPoolNameDeletes the specified agent pool in the provisioned cluster

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentPoolNamestringParameter for the name of the agent pool in the provisioned cluster.
connectedClusterResourceUristringThe fully qualified Azure Resource Manager identifier of the connected cluster resource.

SELECT examples

Gets the specified agent pool in the provisioned cluster

SELECT
extendedLocation,
properties,
tags
FROM azure.hybrid_aks.agent_pools
WHERE connectedClusterResourceUri = '{{ connectedClusterResourceUri }}' -- required
AND agentPoolName = '{{ agentPoolName }}' -- required
;

INSERT examples

Creates or updates the agent pool in the provisioned cluster

INSERT INTO azure.hybrid_aks.agent_pools (
data__properties,
data__tags,
data__extendedLocation,
connectedClusterResourceUri,
agentPoolName
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ extendedLocation }}',
'{{ connectedClusterResourceUri }}',
'{{ agentPoolName }}'
RETURNING
extendedLocation,
properties,
tags
;

DELETE examples

Deletes the specified agent pool in the provisioned cluster

DELETE FROM azure.hybrid_aks.agent_pools
WHERE connectedClusterResourceUri = '{{ connectedClusterResourceUri }}' --required
AND agentPoolName = '{{ agentPoolName }}' --required
;