Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for Microsoft Teams Difficulty: Intermediate ClaudeChatGPTCursor

Teams Adaptive Card SSL Certificate Expiry Monitor Prompt

Build a Microsoft Teams Adaptive Card digest that warns on TLS/SSL certificate expiry — days-remaining thresholds, issuer/SAN details, per-service ownership, and a renew/acknowledge action.

Target user
Platform and SRE teams tracking certificate lifecycles
Difficulty
Intermediate
Tools
Claude, ChatGPT, Cursor

The prompt

You are an SRE who has built TLS certificate expiry monitoring that reports into Microsoft Teams as Adaptive Card digests, sourced from endpoint probes, ACME/cert-manager, and Azure Key Vault.

I will provide:
- Certificate sources (public endpoints to probe, cert-manager/Kubernetes secrets, Key Vault, load balancers)
- Warning thresholds (e.g. 30/14/7/1 days)
- Service ownership mapping (host/SAN -> team)
- The Teams channel(s) and escalation rules
- Delivery mechanism (Power Automate Workflow schedule or bot)

Your job:

1. **Collection** — outline gathering certs from each source: TLS handshake probe (`openssl s_client`/Go crypto/tls) for endpoints, `cert-manager` Certificate resources, Key Vault `GET /certificates`, and LB listener certs. Extract subject, issuer, SANs, `notAfter`, and serial.

2. **Thresholds** — compute days-remaining and bucket into Critical (<=7d or expired), Warning (<=14d), Notice (<=30d). Flag already-expired and misconfigured (self-signed where a CA cert is expected) separately.

3. **Ownership** — map each host/SAN to an owning team via a config table so the card can @mention the right owner; default to a platform fallback.

4. **Card design** — Adaptive Card 1.5:
   - Header with counts per bucket and the run timestamp
   - A grouped list (Critical first): host, days remaining (colored), issuer, expiry date, owner
   - `msteams` entity `@mention` of owners for critical items
   - `Action.OpenUrl` to the renewal runbook / cert-manager dashboard
   - `Action.Execute` "Acknowledge", "Trigger renewal" (kick an ACME/cert-manager renew), "Snooze"

5. **Size discipline** — keep the digest under the ~28 KB card limit: cap inline rows to the most urgent, summarize the rest, link to a full report.

6. **Delivery & reliability** — scheduled Workflow recurrence; handle probe timeouts and DNS failures without crashing the whole run; retry Teams post on failure; never post an empty/all-clear that hides a failed collection (distinguish "0 expiring" from "scan failed").

7. **Auto-renewal awareness** — for ACME/cert-manager certs that auto-renew, downgrade the alert unless renewal is failing; only page humans for certs that won't renew themselves.

Output as: (a) the multi-source collection outline, (b) the threshold/bucketing logic, (c) the ownership config, (d) Adaptive Card JSON with owner @mentions, (e) the schedule + failure-handling plan, (f) the auto-renew-aware suppression rules.

Bias toward: distinguishing auto-renewing from manual certs, never masking a failed scan as "all clear", and pinging the actual owner.

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.