Sign in
Explore
Skills · SkillDevOps & CloudDocker & KubernetesCloud platformsReviewed

azure-cosmos-ts

Azure Cosmos DB for JavaScript/TypeScript (@azure/cosmos): document CRUD, queries, bulk operations and containers.

Kind
Skill
Works with
Claude Code
Languages
TypeScript / JavaScript
Source
microsoft/skills @ 2130750147de
Path
.github/plugins/azure-sdk-typescript/skills/azure-cosmos-ts/SKILL.md
Jobs
Implementation
Topics
Docker & Kubernetes, Cloud platforms

Credit

Made by
microsoft
Original
github.com/microsoft/skills/blob/2130750147dee0311215099ddf36…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/azure-cosmos-ts/ (the skill folder)
  • 2 other files in the folder: references/bulk-operations.md, references/query-patterns.md
Runs scripts
Yes
  • shell block in the text
Uses the network
Yes
  • downloads npm packages
Needs secrets
Yes
  • COSMOS_KEY
  • AZURE_TOKEN_CREDENTIALS
Reads environment variables
  • COSMOS_ENDPOINT
  • COSMOS_KEY
  • COSMOS_CONNECTION_STRING
  • COSMOS_DATABASE
  • COSMOS_CONTAINER
  • AZURE_TOKEN_CREDENTIALS
Calls other skills
  • /price
  • /discount
  • /name
  • /category
Source revision
2130750147de
Licence
MIT
Last activity
26 Nov 2026
Source changed after the scan
Yes
  • Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# @azure/cosmos (TypeScript/JavaScript)

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

## Installation

```bash
npm install @azure/cosmos @azure/identity
```

**Current Version**: 4.9.0  
**Node.js**: >= 20.0.0

## Environment Variables

```bash
COSMOS_ENDPOINT=https://<account>.documents.azure.com:443/
COSMOS_DATABASE=<database-name>
COSMOS_CONTAINER=<container-name>
# For key-based auth only (prefer AAD)
COSMOS_KEY=<account-key>
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
```

## Authentication

### Microsoft Entra Token Credential (Recommended)

```typescript
import { CosmosClient } from "@azure/cosmos";
import { DefaultAzureCredential, ManagedIdentityCredential } from "@azure/identity";

// Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential>
…