| name | scheduled-events |
| description | Azure Scheduled Events via IMDS — react to host maintenance |
Scheduled Events
When to use this skill
- Long-running stateful workloads
- Spot VMSS workloads needing graceful drain
Key concepts
- IMDS Scheduled Events endpoint announces upcoming Freeze / Reboot / Redeploy / Preempt / Terminate with lead time.
- Useful for: graceful drain, leader re-election, checkpoint, cache warm-up post event.
- Approve an event to make it happen sooner if you're ready — useful for maintenance batches.
- Spot VM preemption gives ~30s notice — use Scheduled Events to detect, not OS shutdown signals alone.
- Linux daemon
azure-scheduled-events.service or custom poller pattern.
Azure CLI examples
curl -H Metadata:true \
"http://169.254.169.254/metadata/scheduledevents?api-version=2020-07-01"
Common pitfalls
- Polling too often — IMDS will rate-limit you.
- Ignoring Freeze events (≤9s) and getting surprise latency in distributed locks.
- Forgetting Spot preemption uses Scheduled Events; OS shutdown signals alone are too late.
References
Validation-first: verify every Azure fact against the Microsoft Learn MCP server (cite the Learn URL); Learn overrides built-in knowledge. If no Learn MCP server is configured, flag the answer ⚠️ unverified and mark specs as indicative. Analysis only — verify against Microsoft documentation before applying.