Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare Azure environments for new workloads—subscriptions, networking, identity, and landing zones
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/cosmos-db/README.md
1# Azure Cosmos DB23Globally distributed, multi-model database for low-latency data at scale.45## When to Use67- Global distribution requirements8- Multi-model data (document, graph, key-value)9- Variable and unpredictable throughput10- Low-latency reads/writes at scale11- Flexible schema requirements1213## Required Supporting Resources1415| Resource | Purpose |16|----------|---------|17| None required | Cosmos DB is fully managed |18| Key Vault | Store connection strings (recommended) |1920## Capacity Modes2122| Mode | Use Case | Billing |23|------|----------|---------|24| **Serverless** | Variable/low traffic, dev/test | Per request |25| **Provisioned** | Predictable workloads | Per RU/s |26| **Autoscale** | Variable but predictable peaks | Per max RU/s |2728## Consistency Levels2930| Level | Latency | Consistency |31|-------|---------|-------------|32| Strong | Highest | Linearizable |33| Bounded Staleness | High | Bounded |34| Session | Medium | Session-scoped |35| Consistent Prefix | Low | Prefix ordering |36| Eventual | Lowest | Eventually consistent |3738Recommendation: Use **Session** for most applications.3940## Environment Variables4142| Variable | Value |43|----------|-------|44| `COSMOS_CONNECTION_STRING` | Primary connection string (Key Vault reference) |45| `COSMOS_ENDPOINT` | Account endpoint URL |46| `COSMOS_DATABASE` | Database name |4748## References4950- [Bicep Patterns](bicep.md)51- [Partition Key Selection](partitioning.md)52- [SDK Connection Patterns](sdk.md)53