Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.nexus.agent_pools

Fields

NameDatatypeDescription
administrator_configurationtextfield from the properties object
agentPoolNametextfield from the properties object
agent_optionstextfield from the properties object
attached_network_configurationtextfield from the properties object
availability_zonestextfield from the properties object
counttextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
extended_locationtextfield from the properties object
kubernetesClusterNametextfield from the properties object
kubernetes_versiontextfield from the properties object
labelstextfield from the properties object
locationtextThe geo-location where the resource lives
modetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
taintstextfield from the properties object
upgrade_settingstextfield from the properties object
vm_sku_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTagentPoolName, kubernetesClusterName, resourceGroupName, subscriptionIdGet properties of the provided Kubernetes cluster agent pool.
list_by_kubernetes_clusterSELECTkubernetesClusterName, resourceGroupName, subscriptionIdGet a list of agent pools for the provided Kubernetes cluster.
create_or_updateINSERTagentPoolName, kubernetesClusterName, resourceGroupName, subscriptionId, data__propertiesCreate a new Kubernetes cluster agent pool or update the properties of the existing one.
deleteDELETEagentPoolName, kubernetesClusterName, resourceGroupName, subscriptionIdDelete the provided Kubernetes cluster agent pool.
updateUPDATEagentPoolName, kubernetesClusterName, resourceGroupName, subscriptionIdPatch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently.

SELECT examples

Get a list of agent pools for the provided Kubernetes cluster.

SELECT
administrator_configuration,
agentPoolName,
agent_options,
attached_network_configuration,
availability_zones,
count,
detailed_status,
detailed_status_message,
extended_location,
kubernetesClusterName,
kubernetes_version,
labels,
location,
mode,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
taints,
upgrade_settings,
vm_sku_name
FROM azure.nexus.vw_agent_pools
WHERE kubernetesClusterName = '{{ kubernetesClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.nexus.agent_pools (
agentPoolName,
kubernetesClusterName,
resourceGroupName,
subscriptionId,
data__properties,
extendedLocation,
properties,
tags,
location
)
SELECT
'{{ agentPoolName }}',
'{{ kubernetesClusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a agent_pools resource.

/*+ update */
UPDATE azure.nexus.agent_pools
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
agentPoolName = '{{ agentPoolName }}'
AND kubernetesClusterName = '{{ kubernetesClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified agent_pools resource.

/*+ delete */
DELETE FROM azure.nexus.agent_pools
WHERE agentPoolName = '{{ agentPoolName }}'
AND kubernetesClusterName = '{{ kubernetesClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';