# Agent pool

When you create agent pools to run Azure Kubernetes (AKS) workloads, you create groups of agents available to a pipeline. When you run the pipeline, the pipeline selects the agent that best meets the performance demands of that pipeline.

Agent pools can be [autoscaled](broken://pages/rBSCO4qR3H9aNaiwXq5f) when the **Enable Autoscaling** option is selected in the DuploCloud Portal. Each agent pool contains nodes backed by virtual host machines.

Use the DuploCloud Portal **Hosts** page to create and edit Azure agent pools.

## Creating an agent pool

Create an Azure agent pool for an existing Host in the DuploCloud Portal:

1. Select **Devops** -> **Hosts** from the navigation menu.
2. Select the **Azure Agent Pool** tab. The **Azure Agent Pool** page is displayed.
3. Click **Add**. The **Add Azure Agent Pool** page is displayed.
4. Provide inputs for the **Instance Type**, **Min Capacity**, and **Max Capacity** fields.

   <figure><img src="/files/5A0jWHbfPCTgywIrkzED" alt=""><figcaption><p>Input fields on the <strong>Add Azure Agent Pool</strong> page with <strong>Enable Autoscaling</strong> selected.</p></figcaption></figure>
5. Optionally, select **Enable Autoscaling** to autoscale the pool.
6. Click **Add**. When the agent pool is created, **Succeeded** is displayed in the **Status** column. It may take some time to create the agent pool.

   <figure><img src="/files/g3z06abM07LYjddH9gn9" alt=""><figcaption><p>Agent pool with <strong>Succeeded</strong> status</p></figcaption></figure>

## Editing an agent pool

Edit an agent pool:

1. Select **Devops** -> **Hosts** from the navigation menu.
2. Select the **Azure Agent Pool** tab. The **Azure Agent Pool** page displays.
3. In the **Name** column, select the agent pool that you want to edit.
4. Select the **Actions** menu and choose **Edit**.

   <figure><img src="/files/SEVL8sLKNSGUI82JPmJY" alt=""><figcaption><p>Agent pool with the <strong>Actions</strong> menu</p></figcaption></figure>
5. In the **Update agent pool capacity** pane, edit the pool configuration.
6. Click **Update**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/~/changes/i1ah7lBvMELea01fsIga/azure/azure-services/agent-pool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
