microsoft/purview-dlm-mcp/dlm-diagnostics
Claude Code and agent skill by microsoft/purview-dlm-mcp
- vendor
Checking that the SKILL.md file is still in the repository.
Diagnose Microsoft Purview Data Lifecycle Management (DLM) issues in Exchange Online. Use this skill when a user reports: retention policy not applying to workloads, retention policy stuck in Error or PendingDeletion, items not moving from primary mailbox to archive, auto-expanding archive not provisioning additional storage, inactive mailbox not created after user deletion, Recoverable Items or SubstrateHolds folder growing uncontrollably, Teams messages not being deleted after retention period expires, MRM and Purview retention conflicting causing unexpected deletion or retention, adaptive scope including wrong members or not populating, or auto-apply retention labels not labeling content or showing Off Error status. Requires Exchange Online and Security & Compliance PowerShell sessions.
Install
npx vskill@latest install microsoft/purview-dlm-mcp/dlm-diagnosticsSKILL.md
DLM Diagnostics
Investigate and resolve Microsoft Purview Data Lifecycle Management issues in Exchange Online. Follow the decision tree below to identify the correct troubleshooting guide, then load the matching reference file for step-by-step diagnostic instructions.
Prerequisites
Before running any diagnostic commands, ensure both PowerShell sessions are connected:
Safety Rules
Only execute read-only commands. Allowed cmdlet verbs: Get-*, Test-*, Export-*.
Never execute mutating commands — Set-*, New-*, Remove-*, Enable-*, Start-*, Invoke-* cmdlets must only be returned as text recommendations for the admin to review and run manually.
Decision Tree
Identify the reported symptom and load the matching reference:
| Symptom | Reference | |
|---|---|---|
| Policy shows Success but content is not retained or deleted on target workloads | retention-policy-not-applying.md | |
| Policy status shows Error, PolicySyncTimeout, or PendingDeletion | policy-stuck-error.md | |
| Archive mailbox exists but items stay in the primary mailbox | items-not-moving-to-archive.md | |
| Archive is near 100 GB but no auxiliary archive is being created | auto-expanding-archive.md | |
| User was deleted but mailbox was purged instead of becoming inactive | inactive-mailbox.md | |
| Recoverable Items folder growing uncontrollably or SubstrateHolds is large | substrateholds-quota.md | |
| Teams retention policy exists but messages remain visible past retention period | teams-messages-not-deleting.md | |
| Both MRM and Purview retention on a mailbox causing unexpected behavior | mrm-purview-conflict.md | |
| Adaptive scope includes wrong members, shows no members, or scope query not targeting correct users/sites | adaptive-scope.md | |
| Auto-apply retention label policy not labeling content, stuck in simulation, or shows "Off (Error)" | auto-apply-labels.md | |
| SharePoint site cannot be deleted because a retention policy or hold is blocking it | sharepoint-site-deletion-blocked.md |
If the issue does not match a specific symptom above, or for ad-hoc investigations, see diagnostic-commands.md for a quick-reference of common diagnostic commands. For adaptive scope validation commands, see adaptive-scope.md.
Workflow
- Identify the symptom from the user's description using the decision tree above.
- Load the matching reference file — read it fully before starting the investigation.
- Execute diagnostic commands step by step using the
run_powershellMCP tool, following the reference guide's sequence. - Interpret results at each step — the reference guide explains what to look for and how each finding maps to a root cause.
- Cross-reference — some guides link to sibling references (e.g., policy distribution failures link to policy-stuck-error.md). Load those when directed.
- Report findings — summarize the root cause, present the root-cause confirmation table, and provide the recommended remediation actions as text for the admin to review.
- Review the execution log — use the
get_execution_logMCP tool to include a full audit trail of all commands run during the investigation.
Output Format
Present findings to the user in this structure:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 14 Mar 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/dlm-diagnostics/SKILL.md
Popularity
- Repository npm downloads, 7 days
- 13
- 7-day trend score
- 10
Downloads are for the repository's npm package. Refreshed 24 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/purview-dlm-mcp/dlm-diagnostics)