# Autoscaling Azure Agent Pools

When you use autoscaling for Azure agent pools, you allow DuploCloud to manage your application's capacity requirements within your limits.&#x20;

## Creating an autoscaled Azure agent pool

In the DuploCloud Portal, [create an Azure agent pool](/docs/~/changes/i1ah7lBvMELea01fsIga/azure/azure-services/agent-pool.md) with the Enable Autoscaling option selected. Each agent pool contains nodes backed by the virtual host machines.

<figure><img src="/files/Sw0KexacFD4FQo1yyOb2" alt=""><figcaption><p><strong>Azure Agent Pool</strong> page with <strong>Enable Autoscaling</strong> option</p></figcaption></figure>

## Configure Service with HPA

Configure a service with the [Kubernetes Horizontal Pod Autoscaler (HPA)](/docs/~/changes/i1ah7lBvMELea01fsIga/azure/use-cases/autoscaling/autoscaling-in-kubernetes.md#kubernetes-horizontal-pod-autoscaler-hpa) to manage autoscaling for the agent pool.


---

# 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/use-cases/autoscaling/autoscaling-azure-agent-pools.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.
