azure-cosmos-py
Azure Cosmos DB for Python (NoSQL API): document CRUD, queries, containers and partition keys.
- Kind
- Skill
- Works with
- Claude Code
- Languages
- Python
- Source
- microsoft/skills @ 2130750147de
- Path
- .github/plugins/azure-sdk-python/skills/azure-cosmos-py/SKILL.md
- Jobs
- Implementation
- Topics
- Databases, APIs, Docker & Kubernetes
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-py/ (the skill folder)
- 3 file(s) the skill refers to
- 2 other files in the folder: references/partitioning.md, references/query-patterns.md
- Runs scripts
- Yes
- shell block in the text
- Uses the network
- Yes
- downloads Python packages
- Needs secrets
- Yes
- AZURE_TOKEN_CREDENTIALS
- Reads environment variables
- AZURE_TOKEN_CREDENTIALS
- Calls other skills
- /category
- /department
- /day
- 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 DB SDK for Python Client library for Azure Cosmos DB NoSQL API — globally distributed, multi-model database. ## Installation ```bash pip install azure-cosmos azure-identity ``` ## Environment Variables ```bash COSMOS_ENDPOINT=https://<account>.documents.azure.com:443/ # Required for all auth methods COSMOS_DATABASE=mydb # Required for all auth methods COSMOS_CONTAINER=mycontainer # Required for all auth methods AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production ``` ## Authentication & Lifecycle > **🔑 Two rules apply to every code sample below:** > > 1. **Prefer `DefaultAzureCredential`.** It works locally (Azure CLI / VS Code / Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account/API keys — they bypass Entra audit and rotation. > - Local dev: `DefaultAzureCredential` works as-is. > - Production: set `AZURE_TOKEN_CREDENTIALS=prod` (or `AZURE_TOKEN_CREDENTIALS=<specific_credential>`) to constrain the credential chain to production-safe credentials. …