agent_pools
Creates, updates, deletes, gets or lists an agent_pools resource.
Overview
| Name | agent_pools |
| Type | Resource |
| Id | azure.container_service.agent_pools |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
artifactStreamingProfile | object | Configuration for using artifact streaming on AKS. |
availabilityZones | array | The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'. |
capacityReservationGroupID | string | The fully qualified resource ID of the Capacity Reservation Group to provide virtual machines from a reserved group of Virtual Machines. This is of the form: '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/capacityreservationgroups/{capacityReservationGroupName}' Customers use it to create an agentpool with a specified CRG. For more information see Capacity Reservation _. |
count | integer | Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. |
creationData | object | CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. |
currentOrchestratorVersion | string | The version of Kubernetes the Agent Pool is running. If orchestratorVersion is a fully specified version , this field will be exactly equal to it. If orchestratorVersion is , this field will contain the full version being used. |
eTag | string | Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal eTag convention. |
enableAutoScaling | boolean | Whether to enable auto-scaler. |
enableEncryptionAtHost | boolean | Whether to enable host based OS and data drive encryption. This is only supported on certain VM sizes and in certain Azure regions. For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption _. |
enableFIPS | boolean | Whether to use a FIPS-enabled OS. See Add a FIPS-enabled node pool _ for more details. |
enableNodePublicIP | boolean | Whether each node is allocated its own public IP. Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see assigning a public IP per node _. The default is false. |
enableOSDiskFullCaching | boolean | Whether to enable the full-cache ephemeral OS disk feature. When this feature is enabled, the entire operating system will be locally cached on the ephemeral OS disk, preventing E17 events caused by network failures. |
enableUltraSSD | boolean | Whether to enable UltraSSD. |
gatewayProfile | object | Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway. |
gpuInstanceProfile | string | GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. Known values are: "MIG1g", "MIG2g", "MIG3g", "MIG4g", and "MIG7g". (MIG1g, MIG2g, MIG3g, MIG4g, MIG7g) |
gpuProfile | object | GPU settings for the Agent Pool. |
hostGroupID | string | The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in creation scenario and not allowed to changed once set. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see Azure dedicated hosts _. |
kubeletConfig | object | The Kubelet configuration on the agent pool nodes. |
kubeletDiskType | string | Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. Known values are: "OS" and "Temporary". (OS, Temporary) |
linuxOSConfig | object | The OS configuration of Linux agent nodes. |
localDNSProfile | object | Configures the per-node local DNS, with VnetDNS and KubeDNS overrides. LocalDNS helps improve performance and reliability of DNS resolution in an AKS cluster. For more details see aka.ms/aks/localdns. |
maxCount | integer | The maximum number of nodes for auto-scaling. |
maxPods | integer | The maximum number of pods that can run on a node. |
messageOfTheDay | string | Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). |
minCount | integer | The minimum number of nodes for auto-scaling. |
mode | string | The mode of an agent pool. A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools _. Known values are: "System", "User", "Gateway", "ManagedSystem", and "Machines". (System, User, Gateway, ManagedSystem, Machines) |
networkProfile | object | Network-related settings of an agent pool. |
nodeImageVersion | string | The version of the node image. Setting this value triggers an agentPool rollback. Only values from recentlyUsedVersions are allowed. |
nodeInitializationTaints | array | Taints added on the nodes during creation that will not be reconciled by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be modified after node pool is created, but nodes will not be recreated with new taints until another operation that requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with kubectl taint nodes node1 key1=value1:NoSchedule-. |
nodeLabels | object | The node labels to be persisted across all nodes in agent pool. |
nodePublicIPPrefixID | string | The public IP prefix ID which VM nodes should use IPs from. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. |
nodeTaints | array | The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule. |
orchestratorVersion | string | The version of Kubernetes specified by the user. Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see upgrading a node pool _. |
osDiskSizeGB | integer | OS Disk Size in GB to be used to specify the disk size for every machine in the master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. |
osDiskType | string | The OS disk type to be used for machines in the agent pool. The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see Ephemeral OS _. Known values are: "Managed" and "Ephemeral". (Managed, Ephemeral) |
osSKU | string | Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. Known values are: "Ubuntu", "AzureLinux", "AzureLinux3", "Mariner", "Flatcar", "CBLMariner", "Windows2019", "Windows2022", "Ubuntu2204", "Windows2025", "WindowsAnnual", "Ubuntu2404", and "AzureContainerLinux". (Ubuntu, AzureLinux, AzureLinux3, Mariner, Flatcar, CBLMariner, Windows2019, Windows2022, Ubuntu2204, Windows2025, WindowsAnnual, Ubuntu2404, AzureContainerLinux) |
osType | string | The operating system type. The default is Linux. Known values are: "Linux" and "Windows". (Linux, Windows) |
podIPAllocationMode | string | Pod IP Allocation Mode. The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'. Known values are: "DynamicIndividual" and "StaticBlock". (DynamicIndividual, StaticBlock) |
podSubnetID | string | The ID of the subnet which pods will join when launched. If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. |
powerState | object | Whether the Agent Pool is running or stopped. When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. |
preparedImageSpecificationProfile | object | Settings to determine the prepared image specification used to provision nodes in a pool. |
provisioningState | string | The current deployment or provisioning state. |
proximityPlacementGroupID | string | The ID for Proximity Placement Group. |
scaleDownMode | string | The scale down mode to use when scaling the Agent Pool. This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete. Known values are: "Delete" and "Deallocate". (Delete, Deallocate) |
scaleSetEvictionPolicy | string | The Virtual Machine Scale Set eviction policy. The eviction policy specifies what to do with the VM when it is evicted. The default is Delete. For more information about eviction see spot VMs _. Known values are: "Delete" and "Deallocate". (Delete, Deallocate) |
scaleSetPriority | string | The Virtual Machine Scale Set priority. Known values are: "Spot" and "Regular". (Spot, Regular) |
securityProfile | object | The security settings of an agent pool. |
spotMaxPrice | number | The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any on-demand price. For more details on spot pricing, see spot VMs pricing _. |
status | object | Contains read-only information about the Agent Pool. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | The tags to be persisted on the agent pool virtual machine scale set. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
upgradeSettings | object | Settings for upgrading the agentpool. |
upgradeSettingsBlueGreen | object | Settings for Blue-Green upgrade on the agentpool. Applies when upgrade strategy is set to BlueGreen. |
upgradeStrategy | string | Defines the upgrade strategy for the agent pool. The default is Rolling. Known values are: "Rolling" and "BlueGreen". (Rolling, BlueGreen) |
virtualMachineNodesStatus | array | The status of nodes in a VirtualMachines agent pool. |
virtualMachinesProfile | object | Specifications on VirtualMachines agent pool. |
vmSize | string | The size of the agent pool VMs. VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions _. |
vnetSubnetID | string | The ID of the subnet which agent pool nodes and optionally pods will join on startup. If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. |
windowsProfile | object | The Windows agent pool's specific profile. |
workloadRuntime | string | Determines the type of workload a node can run. Known values are: "OCIContainer", "WasmWasi", "KataMshvVmIsolation", and "KataVmIsolation". (OCIContainer, WasmWasi, KataMshvVmIsolation, KataVmIsolation) |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
artifactStreamingProfile | object | Configuration for using artifact streaming on AKS. |
availabilityZones | array | The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'. |
capacityReservationGroupID | string | The fully qualified resource ID of the Capacity Reservation Group to provide virtual machines from a reserved group of Virtual Machines. This is of the form: '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/capacityreservationgroups/{capacityReservationGroupName}' Customers use it to create an agentpool with a specified CRG. For more information see Capacity Reservation _. |
count | integer | Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. |
creationData | object | CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. |
currentOrchestratorVersion | string | The version of Kubernetes the Agent Pool is running. If orchestratorVersion is a fully specified version , this field will be exactly equal to it. If orchestratorVersion is , this field will contain the full version being used. |
eTag | string | Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal eTag convention. |
enableAutoScaling | boolean | Whether to enable auto-scaler. |
enableEncryptionAtHost | boolean | Whether to enable host based OS and data drive encryption. This is only supported on certain VM sizes and in certain Azure regions. For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption _. |
enableFIPS | boolean | Whether to use a FIPS-enabled OS. See Add a FIPS-enabled node pool _ for more details. |
enableNodePublicIP | boolean | Whether each node is allocated its own public IP. Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see assigning a public IP per node _. The default is false. |
enableOSDiskFullCaching | boolean | Whether to enable the full-cache ephemeral OS disk feature. When this feature is enabled, the entire operating system will be locally cached on the ephemeral OS disk, preventing E17 events caused by network failures. |
enableUltraSSD | boolean | Whether to enable UltraSSD. |
gatewayProfile | object | Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway. |
gpuInstanceProfile | string | GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. Known values are: "MIG1g", "MIG2g", "MIG3g", "MIG4g", and "MIG7g". (MIG1g, MIG2g, MIG3g, MIG4g, MIG7g) |
gpuProfile | object | GPU settings for the Agent Pool. |
hostGroupID | string | The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in creation scenario and not allowed to changed once set. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see Azure dedicated hosts _. |
kubeletConfig | object | The Kubelet configuration on the agent pool nodes. |
kubeletDiskType | string | Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. Known values are: "OS" and "Temporary". (OS, Temporary) |
linuxOSConfig | object | The OS configuration of Linux agent nodes. |
localDNSProfile | object | Configures the per-node local DNS, with VnetDNS and KubeDNS overrides. LocalDNS helps improve performance and reliability of DNS resolution in an AKS cluster. For more details see aka.ms/aks/localdns. |
maxCount | integer | The maximum number of nodes for auto-scaling. |
maxPods | integer | The maximum number of pods that can run on a node. |
messageOfTheDay | string | Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). |
minCount | integer | The minimum number of nodes for auto-scaling. |
mode | string | The mode of an agent pool. A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools _. Known values are: "System", "User", "Gateway", "ManagedSystem", and "Machines". (System, User, Gateway, ManagedSystem, Machines) |
networkProfile | object | Network-related settings of an agent pool. |
nodeImageVersion | string | The version of the node image. Setting this value triggers an agentPool rollback. Only values from recentlyUsedVersions are allowed. |
nodeInitializationTaints | array | Taints added on the nodes during creation that will not be reconciled by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be modified after node pool is created, but nodes will not be recreated with new taints until another operation that requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with kubectl taint nodes node1 key1=value1:NoSchedule-. |
nodeLabels | object | The node labels to be persisted across all nodes in agent pool. |
nodePublicIPPrefixID | string | The public IP prefix ID which VM nodes should use IPs from. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. |
nodeTaints | array | The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule. |
orchestratorVersion | string | The version of Kubernetes specified by the user. Both patch version (e.g. 1.20.13) and (e.g. 1.20) are supported. When is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see upgrading a node pool _. |
osDiskSizeGB | integer | OS Disk Size in GB to be used to specify the disk size for every machine in the master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. |
osDiskType | string | The OS disk type to be used for machines in the agent pool. The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see Ephemeral OS _. Known values are: "Managed" and "Ephemeral". (Managed, Ephemeral) |
osSKU | string | Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. Known values are: "Ubuntu", "AzureLinux", "AzureLinux3", "Mariner", "Flatcar", "CBLMariner", "Windows2019", "Windows2022", "Ubuntu2204", "Windows2025", "WindowsAnnual", "Ubuntu2404", and "AzureContainerLinux". (Ubuntu, AzureLinux, AzureLinux3, Mariner, Flatcar, CBLMariner, Windows2019, Windows2022, Ubuntu2204, Windows2025, WindowsAnnual, Ubuntu2404, AzureContainerLinux) |
osType | string | The operating system type. The default is Linux. Known values are: "Linux" and "Windows". (Linux, Windows) |
podIPAllocationMode | string | Pod IP Allocation Mode. The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'. Known values are: "DynamicIndividual" and "StaticBlock". (DynamicIndividual, StaticBlock) |
podSubnetID | string | The ID of the subnet which pods will join when launched. If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. |
powerState | object | Whether the Agent Pool is running or stopped. When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. |
preparedImageSpecificationProfile | object | Settings to determine the prepared image specification used to provision nodes in a pool. |
provisioningState | string | The current deployment or provisioning state. |
proximityPlacementGroupID | string | The ID for Proximity Placement Group. |
scaleDownMode | string | The scale down mode to use when scaling the Agent Pool. This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete. Known values are: "Delete" and "Deallocate". (Delete, Deallocate) |
scaleSetEvictionPolicy | string | The Virtual Machine Scale Set eviction policy. The eviction policy specifies what to do with the VM when it is evicted. The default is Delete. For more information about eviction see spot VMs _. Known values are: "Delete" and "Deallocate". (Delete, Deallocate) |
scaleSetPriority | string | The Virtual Machine Scale Set priority. Known values are: "Spot" and "Regular". (Spot, Regular) |
securityProfile | object | The security settings of an agent pool. |
spotMaxPrice | number | The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any on-demand price. For more details on spot pricing, see spot VMs pricing _. |
status | object | Contains read-only information about the Agent Pool. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | The tags to be persisted on the agent pool virtual machine scale set. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
upgradeSettings | object | Settings for upgrading the agentpool. |
upgradeSettingsBlueGreen | object | Settings for Blue-Green upgrade on the agentpool. Applies when upgrade strategy is set to BlueGreen. |
upgradeStrategy | string | Defines the upgrade strategy for the agent pool. The default is Rolling. Known values are: "Rolling" and "BlueGreen". (Rolling, BlueGreen) |
virtualMachineNodesStatus | array | The status of nodes in a VirtualMachines agent pool. |
virtualMachinesProfile | object | Specifications on VirtualMachines agent pool. |
vmSize | string | The size of the agent pool VMs. VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions _. |
vnetSubnetID | string | The ID of the subnet which agent pool nodes and optionally pods will join on startup. If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. |
windowsProfile | object | The Windows agent pool's specific profile. |
workloadRuntime | string | Determines the type of workload a node can run. Known values are: "OCIContainer", "WasmWasi", "KataMshvVmIsolation", and "KataVmIsolation". (OCIContainer, WasmWasi, KataMshvVmIsolation, KataVmIsolation) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, resource_name, agent_pool_name, subscription_id | Gets the specified managed cluster agent pool. | |
list | select | resource_group_name, resource_name, subscription_id | Gets a list of agent pools in the specified managed cluster. | |
create_or_update | insert | resource_group_name, resource_name, agent_pool_name, subscription_id | Creates or updates an agent pool in the specified managed cluster. | |
create_or_update | replace | resource_group_name, resource_name, agent_pool_name, subscription_id | Creates or updates an agent pool in the specified managed cluster. | |
delete | delete | resource_group_name, resource_name, agent_pool_name, subscription_id | ignore-pod-disruption-budget | Deletes an agent pool in the specified managed cluster. |
get_available_agent_pool_versions | exec | resource_group_name, resource_name, subscription_id | Gets a list of supported Kubernetes versions for the specified agent pool. See supported Kubernetes versions _ for more details about the version lifecycle. | |
get_upgrade_profile | exec | resource_group_name, resource_name, agent_pool_name, subscription_id | Gets the upgrade profile for an agent pool. | |
abort_latest_operation | exec | resource_group_name, resource_name, agent_pool_name, subscription_id | Aborts last operation running on agent pool. 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. | |
complete_upgrade | exec | resource_group_name, resource_name, agent_pool_name, subscription_id | Completes the upgrade of an agent pool. Completes the upgrade operation for the specified agent pool. | |
delete_machines | exec | resource_group_name, resource_name, agent_pool_name, subscription_id, machineNames | Deletes specific machines in an agent pool. | |
upgrade_node_image_version | exec | resource_group_name, resource_name, agent_pool_name, subscription_id | Upgrades the node image version of an agent pool to the latest. Upgrading 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.
| Name | Datatype | Description |
|---|---|---|
agent_pool_name | string | The name of the agent pool. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
resource_name | string | The name of the managed cluster resource. Required. |
subscription_id | string | |
ignore-pod-disruption-budget | boolean | ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. Default value is None. |
SELECT examples
- get
- list
Gets the specified managed cluster agent pool.
SELECT
id,
name,
artifactStreamingProfile,
availabilityZones,
capacityReservationGroupID,
count,
creationData,
currentOrchestratorVersion,
eTag,
enableAutoScaling,
enableEncryptionAtHost,
enableFIPS,
enableNodePublicIP,
enableOSDiskFullCaching,
enableUltraSSD,
gatewayProfile,
gpuInstanceProfile,
gpuProfile,
hostGroupID,
kubeletConfig,
kubeletDiskType,
linuxOSConfig,
localDNSProfile,
maxCount,
maxPods,
messageOfTheDay,
minCount,
mode,
networkProfile,
nodeImageVersion,
nodeInitializationTaints,
nodeLabels,
nodePublicIPPrefixID,
nodeTaints,
orchestratorVersion,
osDiskSizeGB,
osDiskType,
osSKU,
osType,
podIPAllocationMode,
podSubnetID,
powerState,
preparedImageSpecificationProfile,
provisioningState,
proximityPlacementGroupID,
scaleDownMode,
scaleSetEvictionPolicy,
scaleSetPriority,
securityProfile,
spotMaxPrice,
status,
systemData,
tags,
type,
upgradeSettings,
upgradeSettingsBlueGreen,
upgradeStrategy,
virtualMachineNodesStatus,
virtualMachinesProfile,
vmSize,
vnetSubnetID,
windowsProfile,
workloadRuntime
FROM azure.container_service.agent_pools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND agent_pool_name = '{{ agent_pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets a list of agent pools in the specified managed cluster.
SELECT
id,
name,
artifactStreamingProfile,
availabilityZones,
capacityReservationGroupID,
count,
creationData,
currentOrchestratorVersion,
eTag,
enableAutoScaling,
enableEncryptionAtHost,
enableFIPS,
enableNodePublicIP,
enableOSDiskFullCaching,
enableUltraSSD,
gatewayProfile,
gpuInstanceProfile,
gpuProfile,
hostGroupID,
kubeletConfig,
kubeletDiskType,
linuxOSConfig,
localDNSProfile,
maxCount,
maxPods,
messageOfTheDay,
minCount,
mode,
networkProfile,
nodeImageVersion,
nodeInitializationTaints,
nodeLabels,
nodePublicIPPrefixID,
nodeTaints,
orchestratorVersion,
osDiskSizeGB,
osDiskType,
osSKU,
osType,
podIPAllocationMode,
podSubnetID,
powerState,
preparedImageSpecificationProfile,
provisioningState,
proximityPlacementGroupID,
scaleDownMode,
scaleSetEvictionPolicy,
scaleSetPriority,
securityProfile,
spotMaxPrice,
status,
systemData,
tags,
type,
upgradeSettings,
upgradeSettingsBlueGreen,
upgradeStrategy,
virtualMachineNodesStatus,
virtualMachinesProfile,
vmSize,
vnetSubnetID,
windowsProfile,
workloadRuntime
FROM azure.container_service.agent_pools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates an agent pool in the specified managed cluster.
INSERT INTO azure.container_service.agent_pools (
properties,
resource_group_name,
resource_name,
agent_pool_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ agent_pool_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: agent_pools
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the agent_pools resource.
- name: resource_name
value: "{{ resource_name }}"
description: Required parameter for the agent_pools resource.
- name: agent_pool_name
value: "{{ agent_pool_name }}"
description: Required parameter for the agent_pools resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the agent_pools resource.
- name: properties
description: |
The resource-specific properties for this resource.
value:
eTag: "{{ eTag }}"
count: {{ count }}
vmSize: "{{ vmSize }}"
osDiskSizeGB: {{ osDiskSizeGB }}
osDiskType: "{{ osDiskType }}"
kubeletDiskType: "{{ kubeletDiskType }}"
workloadRuntime: "{{ workloadRuntime }}"
messageOfTheDay: "{{ messageOfTheDay }}"
vnetSubnetID: "{{ vnetSubnetID }}"
podSubnetID: "{{ podSubnetID }}"
podIPAllocationMode: "{{ podIPAllocationMode }}"
maxPods: {{ maxPods }}
osType: "{{ osType }}"
osSKU: "{{ osSKU }}"
maxCount: {{ maxCount }}
minCount: {{ minCount }}
enableAutoScaling: {{ enableAutoScaling }}
scaleDownMode: "{{ scaleDownMode }}"
type: "{{ type }}"
mode: "{{ mode }}"
orchestratorVersion: "{{ orchestratorVersion }}"
currentOrchestratorVersion: "{{ currentOrchestratorVersion }}"
nodeImageVersion: "{{ nodeImageVersion }}"
upgradeStrategy: "{{ upgradeStrategy }}"
enableOSDiskFullCaching: {{ enableOSDiskFullCaching }}
upgradeSettings:
maxSurge: "{{ maxSurge }}"
maxUnavailable: "{{ maxUnavailable }}"
maxBlockedNodes: "{{ maxBlockedNodes }}"
drainTimeoutInMinutes: {{ drainTimeoutInMinutes }}
nodeSoakDurationInMinutes: {{ nodeSoakDurationInMinutes }}
undrainableNodeBehavior: "{{ undrainableNodeBehavior }}"
upgradeSettingsBlueGreen:
drainBatchSize: "{{ drainBatchSize }}"
drainTimeoutInMinutes: {{ drainTimeoutInMinutes }}
batchSoakDurationInMinutes: {{ batchSoakDurationInMinutes }}
finalSoakDurationInMinutes: {{ finalSoakDurationInMinutes }}
provisioningState: "{{ provisioningState }}"
powerState:
code: "{{ code }}"
availabilityZones:
- "{{ availabilityZones }}"
enableNodePublicIP: {{ enableNodePublicIP }}
nodePublicIPPrefixID: "{{ nodePublicIPPrefixID }}"
scaleSetPriority: "{{ scaleSetPriority }}"
scaleSetEvictionPolicy: "{{ scaleSetEvictionPolicy }}"
spotMaxPrice: {{ spotMaxPrice }}
tags: "{{ tags }}"
nodeLabels: "{{ nodeLabels }}"
nodeTaints:
- "{{ nodeTaints }}"
nodeInitializationTaints:
- "{{ nodeInitializationTaints }}"
proximityPlacementGroupID: "{{ proximityPlacementGroupID }}"
kubeletConfig:
cpuManagerPolicy: "{{ cpuManagerPolicy }}"
cpuCfsQuota: {{ cpuCfsQuota }}
cpuCfsQuotaPeriod: "{{ cpuCfsQuotaPeriod }}"
imageGcHighThreshold: {{ imageGcHighThreshold }}
imageGcLowThreshold: {{ imageGcLowThreshold }}
topologyManagerPolicy: "{{ topologyManagerPolicy }}"
allowedUnsafeSysctls:
- "{{ allowedUnsafeSysctls }}"
failSwapOn: {{ failSwapOn }}
containerLogMaxSizeMB: {{ containerLogMaxSizeMB }}
containerLogMaxFiles: {{ containerLogMaxFiles }}
podMaxPids: {{ podMaxPids }}
seccompDefault: "{{ seccompDefault }}"
kubeReserved:
cpuMillicores: {{ cpuMillicores }}
memoryMB: {{ memoryMB }}
hardEvictionThreshold:
memoryAvailable: "{{ memoryAvailable }}"
nodeFsAvailable: "{{ nodeFsAvailable }}"
nodeFsInodesFree: "{{ nodeFsInodesFree }}"
linuxOSConfig:
sysctls:
netCoreSomaxconn: {{ netCoreSomaxconn }}
netCoreNetdevMaxBacklog: {{ netCoreNetdevMaxBacklog }}
netCoreRmemDefault: {{ netCoreRmemDefault }}
netCoreRmemMax: {{ netCoreRmemMax }}
netCoreWmemDefault: {{ netCoreWmemDefault }}
netCoreWmemMax: {{ netCoreWmemMax }}
netCoreOptmemMax: {{ netCoreOptmemMax }}
netIpv4TcpMaxSynBacklog: {{ netIpv4TcpMaxSynBacklog }}
netIpv4TcpMaxTwBuckets: {{ netIpv4TcpMaxTwBuckets }}
netIpv4TcpFinTimeout: {{ netIpv4TcpFinTimeout }}
netIpv4TcpKeepaliveTime: {{ netIpv4TcpKeepaliveTime }}
netIpv4TcpKeepaliveProbes: {{ netIpv4TcpKeepaliveProbes }}
netIpv4TcpkeepaliveIntvl: {{ netIpv4TcpkeepaliveIntvl }}
netIpv4TcpTwReuse: {{ netIpv4TcpTwReuse }}
netIpv4IpLocalPortRange: "{{ netIpv4IpLocalPortRange }}"
netIpv4NeighDefaultGcThresh1: {{ netIpv4NeighDefaultGcThresh1 }}
netIpv4NeighDefaultGcThresh2: {{ netIpv4NeighDefaultGcThresh2 }}
netIpv4NeighDefaultGcThresh3: {{ netIpv4NeighDefaultGcThresh3 }}
netNetfilterNfConntrackMax: {{ netNetfilterNfConntrackMax }}
netNetfilterNfConntrackBuckets: {{ netNetfilterNfConntrackBuckets }}
fsInotifyMaxUserWatches: {{ fsInotifyMaxUserWatches }}
fsFileMax: {{ fsFileMax }}
fsAioMaxNr: {{ fsAioMaxNr }}
fsNrOpen: {{ fsNrOpen }}
kernelThreadsMax: {{ kernelThreadsMax }}
vmMaxMapCount: {{ vmMaxMapCount }}
vmSwappiness: {{ vmSwappiness }}
vmVfsCachePressure: {{ vmVfsCachePressure }}
transparentHugePageEnabled: "{{ transparentHugePageEnabled }}"
transparentHugePageDefrag: "{{ transparentHugePageDefrag }}"
swapFileSizeMB: {{ swapFileSizeMB }}
enableEncryptionAtHost: {{ enableEncryptionAtHost }}
enableUltraSSD: {{ enableUltraSSD }}
enableFIPS: {{ enableFIPS }}
gpuInstanceProfile: "{{ gpuInstanceProfile }}"
creationData:
sourceResourceId: "{{ sourceResourceId }}"
capacityReservationGroupID: "{{ capacityReservationGroupID }}"
hostGroupID: "{{ hostGroupID }}"
networkProfile:
nodePublicIPTags:
- ipTagType: "{{ ipTagType }}"
tag: "{{ tag }}"
nodePublicIPPrefixIDs:
- "{{ nodePublicIPPrefixIDs }}"
allowedHostPorts:
- portStart: {{ portStart }}
portEnd: {{ portEnd }}
protocol: "{{ protocol }}"
applicationSecurityGroups:
- "{{ applicationSecurityGroups }}"
secondaryNetworkInterfaces:
- type: "{{ type }}"
vnetSubnetId: "{{ vnetSubnetId }}"
enableAcceleratedNetworking: {{ enableAcceleratedNetworking }}
windowsProfile:
disableOutboundNat: {{ disableOutboundNat }}
securityProfile:
enableVTPM: {{ enableVTPM }}
enableSecureBoot: {{ enableSecureBoot }}
sshAccess: "{{ sshAccess }}"
gpuProfile:
driver: "{{ driver }}"
driverType: "{{ driverType }}"
nvidia:
managementMode: "{{ managementMode }}"
migStrategy: "{{ migStrategy }}"
gatewayProfile:
publicIPPrefixSize: {{ publicIPPrefixSize }}
artifactStreamingProfile:
enabled: {{ enabled }}
virtualMachinesProfile:
scale:
manual:
- size: "{{ size }}"
count: {{ count }}
autoscale:
- size: "{{ size }}"
minCount: {{ minCount }}
maxCount: {{ maxCount }}
virtualMachineNodesStatus:
- size: "{{ size }}"
count: {{ count }}
status:
provisioningError:
code: "{{ code }}"
message: "{{ message }}"
target: "{{ target }}"
details:
- code: "{{ code }}"
message: "{{ message }}"
target: "{{ target }}"
details: "{{ details }}"
additionalInfo: "{{ additionalInfo }}"
additionalInfo:
- type: "{{ type }}"
info: "{{ info }}"
localDNSProfile:
mode: "{{ mode }}"
state: "{{ state }}"
vnetDNSOverrides: "{{ vnetDNSOverrides }}"
kubeDNSOverrides: "{{ kubeDNSOverrides }}"
preparedImageSpecificationProfile:
preparedImageSpecificationId: "{{ preparedImageSpecificationId }}"
REPLACE examples
- create_or_update
Creates or updates an agent pool in the specified managed cluster.
REPLACE azure.container_service.agent_pools
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND agent_pool_name = '{{ agent_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
DELETE examples
- delete
Deletes an agent pool in the specified managed cluster.
DELETE FROM azure.container_service.agent_pools
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND agent_pool_name = '{{ agent_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND ignore-pod-disruption-budget = '{{ ignore-pod-disruption-budget }}'
;
Lifecycle Methods
- get_available_agent_pool_versions
- get_upgrade_profile
- abort_latest_operation
- complete_upgrade
- delete_machines
- upgrade_node_image_version
Gets a list of supported Kubernetes versions for the specified agent pool. See supported Kubernetes versions _ for more details about the version lifecycle.
EXEC azure.container_service.agent_pools.get_available_agent_pool_versions
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Gets the upgrade profile for an agent pool.
EXEC azure.container_service.agent_pools.get_upgrade_profile
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@agent_pool_name='{{ agent_pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Aborts last operation running on agent pool. 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.container_service.agent_pools.abort_latest_operation
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@agent_pool_name='{{ agent_pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Completes the upgrade of an agent pool. Completes the upgrade operation for the specified agent pool.
EXEC azure.container_service.agent_pools.complete_upgrade
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@agent_pool_name='{{ agent_pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Deletes specific machines in an agent pool.
EXEC azure.container_service.agent_pools.delete_machines
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@agent_pool_name='{{ agent_pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"machineNames": "{{ machineNames }}"
}'
;
Upgrades the node image version of an agent pool to the latest. Upgrading 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 _.
EXEC azure.container_service.agent_pools.upgrade_node_image_version
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@agent_pool_name='{{ agent_pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;