Skip to main content

agent_pool

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

Overview

Nameagent_pool
TypeResource
Idazure.hybrid_container_service.agent_pool

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
countintegerNumber of nodes in the agent pool. The default value is 1.
enableAutoScalingbooleanWhether to enable auto-scaler. Default value is false.
extendedLocationobjectExtended location pointing to the underlying infrastructure.
kubernetesVersionstringVersion of Kubernetes in use by the agent pool. This is inherited from the kubernetesVersion of the provisioned cluster.
maxCountintegerThe maximum number of nodes for auto-scaling.
maxPodsintegerThe maximum number of pods that can run on a node.
minCountintegerThe minimum number of nodes for auto-scaling.
nodeLabelsobjectThe node labels to be persisted across all nodes in agent pool.
nodeTaintsarrayTaints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
osSKUstringSpecifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows. Known values are: "CBLMariner", "Windows2019", and "Windows2022".
osTypestringThe particular KubernetesVersion Image OS Type (Linux, Windows). Known values are: "Windows" and "Linux".
provisioningStatestringThe status of the latest long running operation for the agent pool. Known values are: "Succeeded", "Failed", "Canceled", "Pending", "Creating", "Deleting", "Updating", "Upgrading", and "Accepted".
statusobjectThe observed status of the agent pool.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vmSizestringThe VM sku size of the agent pool node VMs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectconnected_cluster_resource_uri, agent_pool_nameGets the specified agent pool in the provisioned cluster. Gets the specified agent pool in the provisioned cluster.
list_by_provisioned_clusterselectconnected_cluster_resource_uriGets the list of agent pools in the specified provisioned cluster. Gets the list of agent pools in the specified provisioned cluster.
create_or_updateinsertconnected_cluster_resource_uri, agent_pool_nameCreates or updates the agent pool in the provisioned cluster. Creates or updates the agent pool in the provisioned cluster.
create_or_updatereplaceconnected_cluster_resource_uri, agent_pool_nameCreates or updates the agent pool in the provisioned cluster. Creates or updates the agent pool in the provisioned cluster.
deletedeleteconnected_cluster_resource_uri, agent_pool_nameDeletes the specified agent pool in the provisioned cluster. Deletes 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
agent_pool_namestringParameter for the name of the agent pool in the provisioned cluster. Required.
connected_cluster_resource_uristringThe fully qualified Azure Resource Manager identifier of the connected cluster resource. Required.

SELECT examples

Gets the specified agent pool in the provisioned cluster. Gets the specified agent pool in the provisioned cluster.

SELECT
id,
name,
count,
enableAutoScaling,
extendedLocation,
kubernetesVersion,
maxCount,
maxPods,
minCount,
nodeLabels,
nodeTaints,
osSKU,
osType,
provisioningState,
status,
systemData,
tags,
type,
vmSize
FROM azure.hybrid_container_service.agent_pool
WHERE connected_cluster_resource_uri = '{{ connected_cluster_resource_uri }}' -- required
AND agent_pool_name = '{{ agent_pool_name }}' -- required
;

INSERT examples

Creates or updates the agent pool in the provisioned cluster. Creates or updates the agent pool in the provisioned cluster.

INSERT INTO azure.hybrid_container_service.agent_pool (
properties,
tags,
extendedLocation,
connected_cluster_resource_uri,
agent_pool_name
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ extendedLocation }}',
'{{ connected_cluster_resource_uri }}',
'{{ agent_pool_name }}'
RETURNING
id,
name,
extendedLocation,
properties,
systemData,
tags,
type
;

REPLACE examples

Creates or updates the agent pool in the provisioned cluster. Creates or updates the agent pool in the provisioned cluster.

REPLACE azure.hybrid_container_service.agent_pool
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
connected_cluster_resource_uri = '{{ connected_cluster_resource_uri }}' --required
AND agent_pool_name = '{{ agent_pool_name }}' --required
RETURNING
id,
name,
extendedLocation,
properties,
systemData,
tags,
type;

DELETE examples

Deletes the specified agent pool in the provisioned cluster. Deletes the specified agent pool in the provisioned cluster.

DELETE FROM azure.hybrid_container_service.agent_pool
WHERE connected_cluster_resource_uri = '{{ connected_cluster_resource_uri }}' --required
AND agent_pool_name = '{{ agent_pool_name }}' --required
;