Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.aks.agent_pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
propertiesobjectProperties of an agent pool.
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceName, agentPoolName
listselectsubscriptionId, resourceGroupName, resourceName
create_or_updateinsertsubscriptionId, resourceGroupName, resourceName, agentPoolName
deletedeletesubscriptionId, resourceGroupName, resourceName, agentPoolName
abort_latest_operationexecsubscriptionId, resourceGroupName, resourceName, agentPoolNameAborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
upgrade_node_image_versionexecsubscriptionId, resourceGroupName, resourceName, agentPoolNameUpgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade

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

SELECT examples

OK

SELECT
id,
name,
properties,
type
FROM azure.aks.agent_pools
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND agentPoolName = '{{ agentPoolName }}' -- required
;

INSERT examples

No description available.

INSERT INTO azure.aks.agent_pools (
data__properties,
subscriptionId,
resourceGroupName,
resourceName,
agentPoolName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ agentPoolName }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

No description available.

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

Lifecycle Methods

Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.

EXEC azure.aks.agent_pools.abort_latest_operation 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@resourceName='{{ resourceName }}' --required,
@agentPoolName='{{ agentPoolName }}' --required
;