---
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

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

## Headers

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

## Response `200`

A response containing the results of the autoscale evaluation.

- AutoScaleRun
  - `timestamp` string, date-time, required
  - `results` string — Each variable value is returned in the form $variable=value, and variables are separated by semicolons.
  - `error` AutoScaleRunError
    - `code` string
    - `message` string
    - `values` NameValuePair[]
      - `name` string
      - `value` string

## Other responses

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

---

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