---
title: "Gets the result of evaluating an automatic scaling formula on the Pool."
method: POST
path: "/pools/{poolId}/evaluateautoscale"
tags: ["Pools"]
---

# Gets the result of evaluating an automatic scaling formula on the Pool.

`POST /pools/{poolId}/evaluateautoscale`

This API is primarily for validating an autoscale formula, as it simply returns
the result without applying the formula to the Pool. The Pool must have auto
scaling enabled in order to evaluate a formula.

## Path parameters

- `poolId` string, required

## Query parameters

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

## Headers

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

## Response `200`

The request has succeeded.

- 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` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/batch-batch.md) · [All operations](https://skmtc.net/azure/apis/batch-batch/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/batch-batch/versions/8427acd8fd77/schema)
