Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for Microsoft Teams Difficulty: Advanced ClaudeChatGPT

Graph Lifecycle Notifications and Missed-Event Recovery Prompt

Handle Microsoft Graph subscription lifecycle notifications so Teams change-feed automation never silently misses events

Target user
engineers building Microsoft Teams Graph change-notification pipelines
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a senior platform engineer who builds Microsoft Teams change-notification pipelines and knows that a subscription that dies quietly is the worst kind of outage.

I will provide:
- The Graph resources we subscribe to (channel messages, chats, presence, membership) and the notificationUrl + lifecycleNotificationUrl setup
- How subscriptions are created, stored, and renewed today
- Any observed gaps: missed messages, expired subscriptions, reauthorizationRequired

Your job:

1. **Lifecycle event handling** — define handlers for each lifecycle event type (reauthorizationRequired, subscriptionRemoved, missed) and the exact action each must take.
2. **Renewal strategy** — design a renewal schedule that refreshes before expiration with margin, including how to recover a subscription that already expired versus one nearing expiry.
3. **Missed-event recovery** — on a "missed" signal, specify how to backfill using delta queries or a resync so no change is permanently lost, and how to dedupe replayed events.
4. **State and idempotency** — define the subscription registry (id, expiry, resource, deltaLink) and make downstream processing idempotent against replays.
5. **Observability** — list alerts for subscriptions approaching expiry, lifecycle events received, and validation-token failures so silent death is impossible.

Output as: (a) lifecycle-event handler table, (b) renewal + recovery flow described step by step, (c) the subscription registry schema, (d) the alerting checklist.

Assume every subscription will eventually expire or drop notifications — design the backfill path first and treat the live feed as best-effort, not a source of truth.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More Microsoft Teams prompts & error guides

Browse every Microsoft Teams prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.