Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.aks.agent_pools

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
agentPoolNametextfield from the properties object
availability_zonestextfield from the properties object
capacity_reservation_group_idtextfield from the properties object
counttextfield from the properties object
creation_datatextfield from the properties object
current_orchestrator_versiontextfield from the properties object
enable_auto_scalingtextfield from the properties object
enable_encryption_at_hosttextfield from the properties object
enable_fipstextfield from the properties object
enable_node_public_iptextfield from the properties object
enable_ultra_ssdtextfield from the properties object
gpu_instance_profiletextfield from the properties object
host_group_idtextfield from the properties object
kubelet_configtextfield from the properties object
kubelet_disk_typetextfield from the properties object
linux_os_configtextfield from the properties object
max_counttextfield from the properties object
max_podstextfield from the properties object
min_counttextfield from the properties object
modetextfield from the properties object
network_profiletextfield from the properties object
node_image_versiontextfield from the properties object
node_labelstextfield from the properties object
node_public_ip_prefix_idtextfield from the properties object
node_taintstextfield from the properties object
orchestrator_versiontextfield from the properties object
os_disk_size_gbtextfield from the properties object
os_disk_typetextfield from the properties object
os_skutextfield from the properties object
os_typetextfield from the properties object
pod_subnet_idtextfield from the properties object
power_statetextfield from the properties object
provisioning_statetextfield from the properties object
proximity_placement_group_idtextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
scale_down_modetextfield from the properties object
scale_set_eviction_policytextfield from the properties object
scale_set_prioritytextfield from the properties object
security_profiletextfield from the properties object
spot_max_pricetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextfield from the properties object
typetextResource type
upgrade_settingstextfield from the properties object
vm_sizetextfield from the properties object
vnet_subnet_idtextfield from the properties object
windows_profiletextfield from the properties object
workload_runtimetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTagentPoolName, resourceGroupName, resourceName, subscriptionId
listSELECTresourceGroupName, resourceName, subscriptionId
create_or_updateINSERTagentPoolName, resourceGroupName, resourceName, subscriptionId
deleteDELETEagentPoolName, resourceGroupName, resourceName, subscriptionId
abort_latest_operationEXECagentPoolName, resourceGroupName, resourceName, subscriptionIdAborts 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_versionEXECagentPoolName, resourceGroupName, resourceName, subscriptionIdUpgrading 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

SELECT examples

SELECT
id,
name,
agentPoolName,
availability_zones,
capacity_reservation_group_id,
count,
creation_data,
current_orchestrator_version,
enable_auto_scaling,
enable_encryption_at_host,
enable_fips,
enable_node_public_ip,
enable_ultra_ssd,
gpu_instance_profile,
host_group_id,
kubelet_config,
kubelet_disk_type,
linux_os_config,
max_count,
max_pods,
min_count,
mode,
network_profile,
node_image_version,
node_labels,
node_public_ip_prefix_id,
node_taints,
orchestrator_version,
os_disk_size_gb,
os_disk_type,
os_sku,
os_type,
pod_subnet_id,
power_state,
provisioning_state,
proximity_placement_group_id,
resourceGroupName,
resourceName,
scale_down_mode,
scale_set_eviction_policy,
scale_set_priority,
security_profile,
spot_max_price,
subscriptionId,
tags,
type,
upgrade_settings,
vm_size,
vnet_subnet_id,
windows_profile,
workload_runtime
FROM azure.aks.vw_agent_pools
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.aks.agent_pools (
agentPoolName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ agentPoolName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified agent_pools resource.

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