# corpusAI Azure Spot VM Eviction Rate History

> corpusAI Azure Spot VM Eviction Rate History is a paid API for AI agents from cloud.trycorpus.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns historical Azure spot VM eviction-rate buckets by SKU and region, sampled over trailing 28-day windows.

## Facts

- Endpoint: GET https://cloud.trycorpus.ai/v1/azure/eviction?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/corpusai-azure-spot-vm-eviction-rate-history-8cda2d1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2yI45vm9IyuCO6KXucfrk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability corpusai-azure-spot-vm-eviction-rate-history-8cda2d1f
```

Example prompt: What's the historical spot eviction rate for the D2s_v5 SKU in Azure us-east over the last 6 months? Pull the data from corpusAI's cloud pricing API so I can see which eviction-rate bucket it falls into.

## When to prefer this

Use this endpoint when you need Azure-specific spot VM eviction rate history, particularly when selecting SKUs or regions for cost-sensitive batch or interruptible workloads. It is distinct from general cloud pricing endpoints because it focuses on eviction risk buckets rather than dollar prices, making it ideal for reliability and SLA planning. Prefer it over manual Azure portal checks when building automated infrastructure selection or monitoring pipelines that need historical eviction trends by region and SKU.

## Known failure modes

- Missing required 'region' parameter returns a 400/validation error
- Invalid region slug (not one of us-east, us-west-2, eu-west) causes rejection
- Invalid date format for 'from' or 'to' fields returns a schema validation error
- Payment failure (insufficient USDC balance or x402 misconfiguration) blocks the request
- Date range with no matching samples returns an empty samples array
- Unknown SKU name returns empty results rather than an error

## How this service works

corpusAI Cloud Pricing: Azure spot eviction-rate history (28-day buckets, sampled daily).

## Output

Returns a JSON object with a count of samples, the queried region, and an array of sample records — each containing the SKU name, the sample date, and the eviction-rate bucket (one of: 0-5%, 5-10%, 10-15%, 15-20%, 20+%) computed over the trailing 28-day window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "region"
     ],
     "properties": {
      "to": {
       "type": "string",
       "format": "date",
       "description": "Last sample date (inclusive), YYYY-MM-DD. Default: latest."
      },
      "sku": {
       "type": "string",
       "description": "Optional SKU name (for example `D2s_v5`). Default: every SKU."
      },
      "from": {
       "type": "string",
       "format": "date",
       "description": "First sample date (inclusive), YYYY-MM-DD. Default: earliest."
      },
      "region": {
       "enum": [
        "us-east",
        "us-west-2",
        "eu-west"
       ],
       "type": "string",
       "description": "Azure region slug: `us-east`, `us-west-2` or `eu-west`."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "region": {
       "type": "string"
      },
      "samples": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "sku": {
          "type": "string"
         },
         "date": {
          "type": "string",
          "format": "date",
          "description": "Sample day."
         },
         "bucket": {
          "type": "string",
          "description": "Eviction-rate bucket in percent over the trailing 28 days: `0-5`, `5-10`, `10-15`, `15-20`, `20+`."
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/corpusai-azure-spot-vm-eviction-rate-history-8cda2d1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cloud.trycorpus.ai](https://www.zero.xyz/host/cloud.trycorpus.ai/llms.txt)
