---
title: "POST /pools/{poolId}/evaluateautoscale"
method: POST
path: "/pools/{poolId}/evaluateautoscale"
tags: ["Pools"]
---

# POST /pools/{poolId}/evaluateautoscale

`POST /pools/{poolId}/evaluateautoscale`

Gets the result of evaluating an automatic scaling formula on the pool.

## Path parameters

- `poolId` string, required

## Query parameters

- `timeout` integer
- `api-version` string, required

## Headers

- `client-request-id` string
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123

## Response `200`

OK

- AutoScaleRun — The results and errors from an execution of a pool autoscale formula.
  - `timestamp` string, date-time, required — The time at which the autoscale formula was last evaluated.
  - `results` string — The final values of all variables used in the evaluation of the autoscale formula. Each variable value is returned in the form $variable=value, and variables are separated by semicolons.
  - `error` AutoScaleRunError — An error that occurred when executing or evaluating a pool autoscale formula.
    - `code` string — An identifier for the autoscale error. Codes are invariant and are intended to be consumed programmatically.
    - `message` string — A message describing the autoscale error, intended to be suitable for display in a user interface.
    - `values` NameValuePair[] — A list of additional error details related to the autoscale error.
      - `name` string — The name in the name-value pair.
      - `value` string — The value in the name-value pair.

## Other responses

- `default` — The error from the Batch service.

---

[API](https://skmtc.dev/azure/apis/batch-batch.md) · [All operations](https://skmtc.dev/azure/apis/batch-batch/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/batch-batch/revisions/bee2d837bf8f/schema)
