SKILL

azure-cosmos-ts

Azure Cosmos DB JavaScript/TypeScript SDK (@azure/cosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: "Cosmos DB", "@azure/cosmos", "CosmosClient", "document CRUD", "NoSQL queries", "bulk operations", "partition key", "container.items".

Target: Cloud, operations & security. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • @azure/cosmos (TypeScript/JavaScript)
  • Installation
  • Environment Variables
  • Authentication
  • Microsoft Entra Token Credential (Recommended)
  • Key-Based Authentication
  • Resource Hierarchy
  • Core Operations

Data plane SDK for Azure Cosmos DB NoSQL API operations — CRUD on documents, queries, bulk operations. ⚠️ Data vs Management Plane - This SDK (@azure/cosmos): CRUD operations on documents, queries, stored procedures - Management SDK (@azure/arm-cosmosdb): Create accounts, databases, containers via ARM Current Version: 4.9.0 Node.js: >= 20.0.0 1. Use Microsoft Entra Token Credential — Use DefaultAzureCredential for local development; use ManagedIdentityCredential or WorkloadIdentityCredential for production 2. Always use parameterized queries — Prevents injection, improves plan caching 3. Specify partition key — Avoid cross-partition queries when possible 4. Use bulk operations — For multiple writes, use executeBulkOperations 5. Handle 429 errors — Implement retry logic with exponential backoff 6. Use ETags for concurrency — Prevent lost updates in concurrent scenarios 7. Close client on shutdown — Call client.dispose() in cleanup | SDK | Purpose | Install | |-----|---------|---------| | @azure/cosmos | Data plane (this SDK) | npm install @azure/cosmos | | @azure/arm-cosmosdb | Management plane (ARM) | npm install @azure/arm-cosmosdb | | @azure/identity | Authentication | npm instal

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
microsoft/skills
Source file
.github/plugins/azure-sdk-typescript/skills/azure-cosmos-ts/SKILL.md
Fixed revision
9287b443662d2433c85621c7325ee72a0ce499b5
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: Microsoft Skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T19:02:06.556Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.