Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure_extras.network_cloud.agent_pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
administratorConfigurationobjectThe administrator credentials to be used for the nodes in this agent pool.
agentOptionsobjectThe configurations that will be applied to each agent in this agent pool.
attachedNetworkConfigurationobjectThe configuration of networks being attached to the agent pool for use by the workloads that run on this Kubernetes cluster.
availabilityZonesarrayThe list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent pool. If not specified, all availability zones will be used.
countintegerThe number of virtual machines that use this configuration. Required.
detailedStatusstringThe current status of the agent pool. Known values are: "Available", "Error", and "Provisioning". (Available, Error, Provisioning)
detailedStatusMessagestringThe descriptive message about the current detailed status.
etagstring"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
extendedLocationobject:vartype extended_location: ~azure.mgmt.networkcloud.models.ExtendedLocation
kubernetesVersionstringThe Kubernetes version running in this agent pool.
labelsarrayThe labels applied to the nodes in this agent pool.
locationstringThe geo-location where the resource lives. Required.
modestringThe selection of how this agent pool is utilized, either as a system pool or a user pool. System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. Required. Known values are: "System", "User", and "NotApplicable". (System, User, NotApplicable)
provisioningStatestringThe provisioning state of the agent pool. Known values are: "Accepted", "Canceled", "Deleting", "Failed", "InProgress", "Succeeded", and "Updating". (Accepted, Canceled, Deleting, Failed, InProgress, Succeeded, Updating)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
taintsarrayThe taints applied to the nodes in this agent pool.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
upgradeSettingsobjectThe configuration of the agent pool.
vmSkuNamestringThe name of the VM SKU that determines the size of resources allocated for node VMs. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, kubernetes_cluster_name, agent_pool_name, subscription_idGet properties of the provided Kubernetes cluster agent pool.
list_by_kubernetes_clusterselectresource_group_name, kubernetes_cluster_name, subscription_id$top, $skipTokenGet a list of agent pools for the provided Kubernetes cluster.
create_or_updateinsertresource_group_name, kubernetes_cluster_name, agent_pool_name, subscription_id, location, propertiesCreate a new Kubernetes cluster agent pool or update the properties of the existing one.
updateupdateresource_group_name, kubernetes_cluster_name, agent_pool_name, subscription_idPatch 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.
create_or_updatereplaceresource_group_name, kubernetes_cluster_name, agent_pool_name, subscription_id, location, propertiesCreate a new Kubernetes cluster agent pool or update the properties of the existing one.
deletedeleteresource_group_name, kubernetes_cluster_name, agent_pool_name, subscription_idDelete 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
agent_pool_namestringThe name of the Kubernetes cluster agent pool. Required.
kubernetes_cluster_namestringThe name of the Kubernetes cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$skipTokenstringThe opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. Default value is None.
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Get properties of the provided Kubernetes cluster agent pool.

SELECT
id,
name,
administratorConfiguration,
agentOptions,
attachedNetworkConfiguration,
availabilityZones,
count,
detailedStatus,
detailedStatusMessage,
etag,
extendedLocation,
kubernetesVersion,
labels,
location,
mode,
provisioningState,
systemData,
tags,
taints,
type,
upgradeSettings,
vmSkuName
FROM azure_extras.network_cloud.agent_pools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND kubernetes_cluster_name = '{{ kubernetes_cluster_name }}' -- required
AND agent_pool_name = '{{ agent_pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure_extras.network_cloud.agent_pools (
tags,
location,
properties,
extendedLocation,
resource_group_name,
kubernetes_cluster_name,
agent_pool_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ extendedLocation }}',
'{{ resource_group_name }}',
'{{ kubernetes_cluster_name }}',
'{{ agent_pool_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

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_extras.network_cloud.agent_pools
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND kubernetes_cluster_name = '{{ kubernetes_cluster_name }}' --required
AND agent_pool_name = '{{ agent_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

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

REPLACE azure_extras.network_cloud.agent_pools
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND kubernetes_cluster_name = '{{ kubernetes_cluster_name }}' --required
AND agent_pool_name = '{{ agent_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete the provided Kubernetes cluster agent pool.

DELETE FROM azure_extras.network_cloud.agent_pools
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND kubernetes_cluster_name = '{{ kubernetes_cluster_name }}' --required
AND agent_pool_name = '{{ agent_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;