Skip to main content

azure-cosmosdb

Query and manage Azure Cosmos DB accounts, databases, and containers.

Source facts

Repository
ThinkfleetAI/thinkfleet-engine
Last source activity
February 1, 2026 at 16:21
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
azure-cosmosdb
description
Query and manage Azure Cosmos DB accounts, databases, and containers.
metadata
{"thinkfleetbot":{"emoji":"🌌","requires":{"bins":"[Truncated]"}}}
# Azure Cosmos DB Manage Cosmos DB databases and query data. ## List accounts ```bash az cosmosdb list --query '[].{Name:name,ResourceGroup:resourceGroup,Kind:kind,Location:locations[0].locationName}' -o table ``` ## List databases ```bash az cosmosdb sql database list --account-name my-cosmos --resource-group my-rg --query '[].{Name:name}' -o table ``` ## List containers ```bash az cosmosdb sql container list --account-name my-cosmos --resource-group my-rg --database-name my-db --query '[].{Name:name,PartitionKey:resource.partitionKey.paths[0]}' -o table ``` ## Query documents ```bash az cosmosdb sql container query --account-name my-cosmos --resource-group my-rg \ --database-name my-db --container-name my-container \ --query-text "SELECT TOP 10 * FROM c WHERE c.status = 'active'" | jq '.[] | {id, status}' ``` ## Get connection strings ```bash az cosmosdb keys list --name my-cosmos --resource-group my-rg --type connection-strings | jq '.connectionStrings[0].connectionString' ``` ## Get throughput ```bash az cosmosdb sql container throughput show --account-name my-cosmos --resource-group my-rg \ --database-name my-db --container-name my-container | jq '{throughput: .resource.throughput, autoscaleMax: .resource.autoscaleSettings.maxThroughput}' ``` ## Update throughput ```bash az cosmosdb sql container throughput update --account-name my-cosmos --resource-group my-rg \ --database-name my-db --container-name my-container --throughput 1000 ``` ## Notes - Cosmos DB supports SQL, MongoDB, Cassandra, Gremlin, and Table APIs. - Use `az cosmosdb sql` for SQL API; replace `sql` with the API type for others. - Confirm before modifying throughput (cost implications).
View on GitHub