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
-
Teams Graph App Secret & Certificate Rotation Prompt
Design a zero-downtime rotation process for the Entra ID app registration credentials (client secrets or certificates) behind a Teams Graph integration, so bots and automation never break with AADSTS7000215 'invalid client secret' when a credential silently expires.
-
Graph Change Notifications with Rich Resource Data Batching Prompt
Design a Graph change-notification receiver that batches encrypted resource-data payloads, validates the dataSignature, and decrypts in bulk so a high-volume Teams message subscription does not melt your endpoint.
-
Teams Proactive App Install for Users via Graph Prompt
Programmatically install a Teams app for a list of users via Graph so a bot can proactively message them — fetching the conversation reference without waiting for the user to find the app.
-
Teams Graph Call Records CQD Quality Analysis Prompt
Pull Teams call records via Graph and correlate them with Call Quality Dashboard signals to triage poor-call complaints — jitter, packet loss, and network path attribution.
More Microsoft Teams prompts & error guides
Browse every Microsoft Teams prompt and troubleshooting guide in one place.
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.