cosmosdb_container_create
Create a Cosmos DB container using specified container name and partition key. Supports optional database name and integrates with Azure MCP Server for logging and audit tracking.
Instructions
Create a new Cosmos DB container
Input Schema
Name | Required | Description | Default |
---|---|---|---|
container_name | Yes | Name of the Cosmos DB container | |
database_name | No | Name of the Cosmos DB database (optional, defaults to 'defaultdb') | |
partition_key | Yes | Partition key definition for the container (e.g., {'paths': ['/partitionKey'], 'kind': 'Hash'}) |
Input Schema (JSON Schema)
{
"properties": {
"container_name": {
"description": "Name of the Cosmos DB container",
"type": "string"
},
"database_name": {
"description": "Name of the Cosmos DB database (optional, defaults to 'defaultdb')",
"type": "string"
},
"partition_key": {
"description": "Partition key definition for the container (e.g., {'paths': ['/partitionKey'], 'kind': 'Hash'})",
"type": "object"
}
},
"required": [
"container_name",
"partition_key"
],
"type": "object"
}