azure-documentdb skill
✓ OfficialProvides expert guidance for Azure DocumentDB development, including troubleshooting, architecture, security, and MongoDB API integration.
- GitHub stars
- 811
- Files
- 1
- Last commit
- Nov 9, 2026
- License
- CC-BY-4.0
- Allowed tools
- —
What does the azure-documentdb skill do?
azure-documentdb provides expert guidance for Azure DocumentDB development, including troubleshooting, architecture, security, and MongoDB API integration.
Summary generated from the skill's SKILL.md.
About the azure-documentdb skill
Developers working with Azure DocumentDB can access specialized technical guidance for database management, architecture, and coding. This skill assists with complex tasks such as troubleshooting query performance, managing security through customer-managed encryption keys, and configuring high-availability replication. It is designed for engineers who need to implement MongoDB API integrations, manage sharding strategies, or deploy infrastructure using Bicep and Terraform.
An agent should load this skill when a user requires help with vector search, RAG workloads, or migrating from MongoDB. The skill relies on network access to retrieve documentation via mcp_microsoftdocs:microsoft_docs_fetch or fetch_webpage to provide up-to-date technical details. It provides specific information on service limits, such as document batch sizes and storage tier constraints, to ensure compliant and efficient database design. This tool is specifically for Azure DocumentDB and should not be used for Cosmos DB, Azure SQL, or Azure Table Storage.
What an agent can do with it
- 1Troubleshoot database connectivity and performanceDiagnose query performance issues or network connectivity errors during database migrations.
- 2Plan MongoDB to DocumentDB migrationsEvaluate migration readiness and choose the best connectivity scenarios for moving MongoDB workloads.
- 3Implement vector search for AI agentsSelect the optimal vector index and similarity algorithms for building AI agents in Python, Go, or TypeScript.
- 4Secure database clustersConfigure firewall rules, RBAC, and private links to protect database access.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the azure-documentdb skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the azure-documentdb skill in Claude Code
~/.claude/skills/azure-documentdb/SKILL.md
$ npx degit MicrosoftDocs/Agent-Skills/skills/azure-documentdb ~/.claude/skills/azure-documentdbInstall the azure-documentdb skill in Claude Code (project)
.claude/skills/azure-documentdb/SKILL.md
$ npx degit MicrosoftDocs/Agent-Skills/skills/azure-documentdb .claude/skills/azure-documentdbInstall the azure-documentdb skill in Codex
~/.agents/skills/azure-documentdb/SKILL.md
$ npx degit MicrosoftDocs/Agent-Skills/skills/azure-documentdb ~/.agents/skills/azure-documentdbInstall the azure-documentdb skill in Gemini CLI
~/.gemini/skills/azure-documentdb/SKILL.md
$ npx degit MicrosoftDocs/Agent-Skills/skills/azure-documentdb ~/.gemini/skills/azure-documentdbInstall the azure-documentdb skill in Claude.ai
npx degit MicrosoftDocs/Agent-Skills/skills/azure-documentdb azure-documentdb && zip -r azure-documentdb.zip azure-documentdb # claude.ai → Customize → Skills → + → Create skill → Upload a skill → azure-documentdb.zip
SKILL.md
View on GitHubAzure DocumentDB Skill
This skill provides expert guidance for Azure DocumentDB. Covers troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. It combines local quick-reference content with remote documentation fetching capabilities.
How to Use This Skill
IMPORTANT for Agent: Use the Category Index below to locate relevant sections. For categories with line ranges (e.g.,
L35-L120), useread_filewith the specified lines. For categories with file links (e.g.,[security.md](security.md)), useread_fileon the linked reference file
IMPORTANT for Agent: If
metadata.generated_atis more than 3 months old, suggest the user pull the latest version from the repository. Ifmcp_microsoftdocstools are not available, suggest the user install it: Installation Guide
This skill requires network access to fetch documentation content:
- Preferred: Use
mcp_microsoftdocs:microsoft_docs_fetchwith query stringfrom=learn-agent-skill. Returns Markdown. - Fallback: Use
fetch_webpagewith query stringfrom=learn-agent-skill&accept=text/markdown. Returns Markdown.
Category Index
| Category | Lines | Description |
|---|---|---|
| Troubleshooting | L37-L45 | Diagnosing and fixing DocumentDB issues: query performance, CMK encryption, replication, and common connectivity/network errors including migration-related problems. |
| Best Practices | L46-L56 | Best practices for DocumentDB indexing, query optimization, background indexing safety, and designing high-availability, cross-region replicated deployments. |
| Decision Making | L57-L72 | Guides for choosing between DocumentDB and MongoDB services, planning migrations and connectivity, cross-region failover, and selecting optimal vector index/search algorithms across languages. |
| Architecture & Design Patterns | L73-L82 | Patterns for scaling, HA/DR, sharding, multi‑cloud setups, and building Go/TypeScript AI agents (including autonomous travel) on Azure DocumentDB. |
| Limits & Quotas | L83-L96 | Limits, quotas, and configuration constraints for DocumentDB: compute/storage tiers, free tier caps, SSD performance, indexing/text index limits, document/batch sizes, diagnostics, and feature availability. |
| Security | L97-L108 | Securing DocumentDB: encryption at rest and with customer keys, firewall and RBAC setup, Private Link and public access control, native user management, and cluster security best practices. |
| Configuration | L109-L131 | Configuring DocumentDB features: indexing, search (BM25, vector, fuzzy, full-text, geo), MongoDB compatibility, HA/replicas, scaling, transactions, monitoring, alerts, backups, and MCP toolkit. |
| Integrations & Coding Patterns | L132-L155 | Patterns and code samples for integrating Azure DocumentDB with languages, frameworks, vector search/RAG tools, migrations (Mongo/Cassandra), and external services like Databricks and OpenAI. |
| Deployment | L156-L162 | Guides for deploying and managing DocumentDB clusters: local dev to Azure, backup/restore, version upgrades, and IaC deployment with Bicep and Terraform. |
Troubleshooting
| Topic | URL |
|---|---|
| Troubleshoot CMK encryption issues in Azure DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/how-to-database-encryption-troubleshoot |
| Diagnose query performance using explain() in DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/how-to-read-explain-output |
| Troubleshoot common Azure DocumentDB errors and connectivity | https://learn.microsoft.com/en-us/azure/documentdb/troubleshoot-common-issues |
| Troubleshoot network connectivity for DocumentDB migrations | https://learn.microsoft.com/en-us/azure/documentdb/troubleshoot-connectivity |
| Troubleshoot Azure DocumentDB replication issues | https://learn.microsoft.com/en-us/azure/documentdb/troubleshoot-replication |
Best Practices
| Topic | URL |
|---|---|
| Use background indexing safely in Azure DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/background-indexing |
| Apply cross-region replication best practices in DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/cross-region-replication |
| Implement HA and cross-region replication best practices | https://learn.microsoft.com/en-us/azure/documentdb/high-availability-replication-best-practices |
| Apply indexing best practices for Azure DocumentDB collections | https://learn.microsoft.com/en-us/azure/documentdb/how-to-create-indexes |
| Explore practical indexing scenarios in Azure DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/how-to-index |
| Safely migrate from non-ordered to ordered indexes in DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/how-to-migrate-ordered-indexes |
| Optimize Azure DocumentDB queries with Index Advisor | https://learn.microsoft.com/en-us/azure/documentdb/index-advisor |
Decision Making
Architecture & Design Patterns
| Topic | URL |
|---|---|
| Apply autoscale behavior for Azure DocumentDB workloads | https://learn.microsoft.com/en-us/azure/documentdb/autoscale |
| Design multi-cloud architectures with Azure DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/multi-cloud |
| Design sharding strategy for Azure DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/partitioning |
| Implement Go-based AI agents with DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/quickstart-agent-go |
| Build TypeScript AI agents with DocumentDB vector search | https://learn.microsoft.com/en-us/azure/documentdb/quickstart-agent-nodejs |
| Design an autonomous travel agent with DocumentDB | https://learn.microsoft.com/en-us/azure/documentdb/tutorial-ai-agent |
Limits & Quotas
Security
Configuration
Integrations & Coding Patterns
Deployment
| Topic | URL |
|---|---|
| Develop locally with DocumentDB and deploy to Azure | https://learn.microsoft.com/en-us/azure/documentdb/development-loop |
| Upgrade Azure DocumentDB clusters to newer MongoDB versions | https://learn.microsoft.com/en-us/azure/documentdb/how-to-upgrade-cluster |
| Deploy Azure DocumentDB clusters with Bicep | https://learn.microsoft.com/en-us/azure/documentdb/quickstart-bicep |
| Deploy Azure DocumentDB clusters using Terraform | https://learn.microsoft.com/en-us/azure/documentdb/quickstart-terraform |
Files in this skill
1azure-documentdb skill questions
How do I install the azure-documentdb skill in Claude Code?
Run npx degit MicrosoftDocs/Agent-Skills/skills/azure-documentdb ~/.claude/skills/azure-documentdb. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the azure-documentdb skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
What topics does this skill cover?
The skill covers troubleshooting, best practices, decision making, architecture, design patterns, limits, quotas, security, configuration, integrations, and deployment.
Can I use this skill for Azure Cosmos DB?
No, this skill is specifically for Azure DocumentDB; for Azure Cosmos DB, you should use the azure-cosmos-db skill.
How can I troubleshoot query performance in DocumentDB?
You can diagnose query performance using the explain() function in DocumentDB.