runner.instance-terminate-azure-vm
Terminate a warm-pool Azure VM runner instance: best-effort GitHub deregistration, LTIP VM delete confirmed by polling describe until NOT_FOUND, per-instance NIC delete, then RunnerInstance TERMINATED. Fails without marking the row when the VM cannot be confirmed gone.
Reap one warm-pool Azure VM instance: GitHub dereg, VM, NIC, row.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-runners-azure |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_instance_uuid | uuid | Yes | — | RunnerInstance.uuid to reap. |
reason | string | No | — | Audit reason stamped as termination_reason. |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_instance_uuid | string | No | — | — |
reason | string | No | — | — |
cloud_instance_ref | string | No | — | — |
runner_group_uuid | string | No | — | — |
github_deregistered | boolean | No | — | — |
vm_deleted | boolean | No | — | — |
nic_deleted | boolean | No | — | — |
termination_reason | string | No | — | — |
outcome | string | No | — | — |
status | string | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | string | No | — | — |
failed_step | string | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | terminate | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | terminate | completed | — |
* (any state) | fail | failed | — |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "runner.instance-terminate-azure-vm",
"initial_data": {
"runner_instance_uuid": "value"
}
}