cluster.delete-azure-vm ​
Delete a GCE VM-backed Kubernetes cluster by deleting its VM/MIG resource.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-clusters-azure |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID for audit and future connection cleanup. |
azure_connection_uuid | uuid | Yes | — | Azure CloudConnection UUID used for provider API calls. |
kubernetes_connection_uuid | uuid | No | — | Kubernetes CloudConnection UUID associated with the VM cluster. |
resource_group | string | Yes | — | Azure resource group. |
zone | string | Yes | — | GCE zone; mapped to azure.compute.vm.delete region. |
cluster_name | string | No | — | Logical Kubernetes cluster name. |
vm_name | string | Yes | — | GCE VM/MIG name to delete. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
validate_credentials | json | No | — | Output from azure.auth.validate_credentials. |
vm_describe | json | No | — | Output from azure.compute.vm.describe. |
organization_uuid | uuid | No | — | Echoed organization UUID. |
azure_connection_uuid | uuid | No | — | Azure CloudConnection UUID used. |
kubernetes_connection_uuid | uuid | No | — | Associated Kubernetes CloudConnection UUID. |
resource_group | string | No | — | Azure resource group. |
zone | string | No | — | GCE zone. |
cluster_name | string | No | — | Logical Kubernetes cluster name. |
vm_name | string | No | — | VM/MIG name. |
deleted | boolean | No | — | Whether the VM/MIG was deleted. |
existed | boolean | No | — | Whether the VM/MIG existed. |
vm_delete | json | No | — | Output from azure.compute.vm.delete. |
failure_reason | string | No | — | Engine failure reason. |
failed_step | json | No | — | Failed DAG step. |
failed_layer | json | No | — | Failed DAG layer. |
failed_at_state | json | No | — | Failed state metadata. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | preflight | azure.auth.validate_credentials, azure.compute.vm.describe | — |
| 2 | delete | azure.compute.vm.delete | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
azure.auth.validate_credentials | validate_credentials |
azure.compute.vm.describe | vm_describe |
azure.compute.vm.delete | vm_delete |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cluster.delete-azure-vm",
"initial_data": {
"azure_connection_uuid": "value",
"resource_group": "value",
"zone": "value",
"vm_name": "value"
}
}