Azure Cosmos DB documentation
Fully managed, distributed NoSQL, relational, and vector database for modern app development. High performance, high availability, and support for open-source PostgreSQL, MongoDB, and Apache Cassandra. Build cloud-native apps effortlessly.
Overview
Introduction to Azure Cosmos DBArchitecture
Vector Database in Azure Cosmos DBReference
PricingTutorial
AI agents with Azure Cosmos DBGet started
Azure Cosmos DB EmulatorGet started
Azure Cosmos DB Agent KitMongoDB-compatible applications
Start with Azure DocumentDB for MongoDB-compatible applications, or explore Azure Cosmos DB for MongoDB (RU) for request-unit-based workloads.
Azure DocumentDB (separate service)
Explore Azure DocumentDB first for MongoDB-compatible applications. It is a separate managed Azure service.
Azure Cosmos DB for MongoDB (RU)
For request-unit-based workloads, explore Azure Cosmos DB for MongoDB (RU) as a separate alternative.
Other Azure Cosmos DB APIs
Choose from multiple APIs that provide compatibility with popular NoSQL and relational database models for modern applications.
NoSQL
Build applications using native SQL queries with automatic indexing and schema flexibility for document-based workloads.
Apache Cassandra
Build highly scalable applications using the Cassandra Query Language (CQL) with automatic global distribution.
Apache Gremlin
Create graph-based applications using the Gremlin graph traversal language for complex relationship queries.
Table
Modernize Azure Table Storage applications with premium capabilities and global distribution.
PostgreSQL
Build distributed relational applications using the familiar PostgreSQL wire protocol with horizontal scaling.
Developer and DevOps guides
Advance your development and DevOps workflows with practical guides, tools, and best practices for building scalable applications on Azure Cosmos DB.
Vector search and AI integration
Unlock new capabilities in your applications with Azure Cosmos DB by implementing powerful vector search and AI-driven features.
Infrastructure as code (IaC)
Automate deployment and management of Azure Cosmos DB resources using modern Infrastructure as Code (IaC) tools like Bicep, ARM templates, and Terraform.
Connect to your database
Learn how to connect to your Azure Cosmos DB using various tools, drivers, and popular programming languages across different APIs.
Performance optimization
Discover techniques to improve the speed, efficiency, and scalability of your Azure Cosmos DB applications across different workload patterns.
Build your first application
Create a console application using Azure Cosmos DB and your preferred development language and API.
Core concepts and architecture
Understand the fundamental concepts that power Azure Cosmos DB's global distribution, consistency, and performance capabilities.
Explore core concepts
Learn about the essential building blocks of Azure Cosmos DB including resource models, global distribution, and consistency levels.
Model your data
Design effective data models and partitioning strategies for optimal performance and cost efficiency.
Analytics with Microsoft Fabric
Integrate Azure Cosmos DB with Microsoft Fabric for analytics.
Security and compliance
Protect your data and applications with comprehensive security features including encryption, access controls, and compliance certifications.
Security overview
Comprehensive security features to protect your data at rest, in transit, and during processing.
Access control and authentication
Manage user access and authentication using Microsoft Entra ID, role-based access control, and resource tokens.
Network security
Secure your database connectivity using virtual networks, private endpoints, and firewall rules.
Data migration and tools
Explore migration guides for Azure DocumentDB and Azure Cosmos DB, with tools for different data sources and target services.
Migration options
Choose a migration approach for your data source and target service.
Migration guides
Step-by-step migration guides for specific database platforms and migration tools.
Samples and resources
Accelerate your Azure Cosmos DB development with code samples, community resources, and learning materials.
Microsoft samples
Official Microsoft samples, galleries, and code repositories for Azure Cosmos DB development across all APIs.
Open-source community
Community-driven samples, tools, and resources from the Azure Cosmos DB open-source ecosystem.
Learning and certification
Explore Azure developer certifications.
Videos and events
Stay updated with the latest Azure Cosmos DB developments through conferences, webinars, and educational video series.
Azure Cosmos DB is a fully managed NoSQL, relational, and vector database for modern app development. Build cloud-native apps with guaranteed speed at any scale, turnkey global distribution, and comprehensive SLA-backed availability.
Key capabilities:
- Single-digit millisecond response times with automatic and instant scalability
- Multi-API support - NoSQL, MongoDB, PostgreSQL, Apache Cassandra, Apache Gremlin, and Table
- AI-powered features - Vector database, Query Copilot, and seamless Foundry Tools integration
- Enterprise-grade security - Encryption at rest, role-based access control, and compliance certifications
- Global distribution - Multi-region writes and data distribution to any Azure region
Trusted by industry leaders: OpenAI relies on Azure Cosmos DB to dynamically scale ChatGPT, enabling high reliability and low maintenance for one of the fastest-growing consumer applications ever.
Get started today with the Azure Cosmos DB Emulator for local development.