Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.nexus.agent_pools

Fields

The following fields are returned by SELECT queries:

The resource has been successfully retrieved.

NameDatatypeDescription
extendedLocationobjectThe extended location of the cluster associated with the resource. (title: ExtendedLocation represents the Azure custom location where the resource will be created.)
locationstringThe geo-location where the resource lives
propertiesobjectThe list of the resource properties. (title: AgentPoolProperties represents the properties of the Kubernetes cluster agent pool.)
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, kubernetesClusterName, agentPoolNameGet properties of the provided Kubernetes cluster agent pool.
list_by_kubernetes_clusterselectsubscriptionId, resourceGroupName, kubernetesClusterNameGet a list of agent pools for the provided Kubernetes cluster.
create_or_updateinsertsubscriptionId, resourceGroupName, kubernetesClusterName, agentPoolName, data__propertiesCreate a new Kubernetes cluster agent pool or update the properties of the existing one.
updateupdatesubscriptionId, resourceGroupName, kubernetesClusterName, agentPoolNamePatch 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.
deletedeletesubscriptionId, resourceGroupName, kubernetesClusterName, agentPoolNameDelete the provided Kubernetes cluster agent pool.

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
agentPoolNamestringThe name of the Kubernetes cluster agent pool.
kubernetesClusterNamestringThe name of the Kubernetes cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get properties of the provided Kubernetes cluster agent pool.

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.agent_pools
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND kubernetesClusterName = '{{ kubernetesClusterName }}' -- required
AND agentPoolName = '{{ agentPoolName }}' -- required
;

INSERT examples

Create a new Kubernetes cluster agent pool or update the properties of the existing one.

INSERT INTO azure.nexus.agent_pools (
data__extendedLocation,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
kubernetesClusterName,
agentPoolName
)
SELECT
'{{ extendedLocation }}',
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ kubernetesClusterName }}',
'{{ agentPoolName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

Patch 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.

UPDATE azure.nexus.agent_pools
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND kubernetesClusterName = '{{ kubernetesClusterName }}' --required
AND agentPoolName = '{{ agentPoolName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

Delete the provided Kubernetes cluster agent pool.

DELETE FROM azure.nexus.agent_pools
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND kubernetesClusterName = '{{ kubernetesClusterName }}' --required
AND agentPoolName = '{{ agentPoolName }}' --required
;