Actions8
Create Container
AI-generatedSummary
Create a new container in an Azure Cosmos DB database with partition key, optional vector indexing, and full-text search support.
Inputs
- authenticationType — The authentication method to use (master key or Microsoft Entra ID OAuth2).
- database (required) — The database where the container will be created. Select from list, or provide name/ID.
- newContainerName (required) — The name of the container to create.
- partitionKeyPath (required) — The partition key path (e.g., /partitionKey, /category, /userId). Must start with /. Default: /partitionKey.
- containerThroughput — Provisioned throughput in Request Units per second. Leave as 0 to inherit from database or use serverless. Default: 0.
- enableVectorIndex — Whether to enable vector indexing for similarity search. Default: false.
- vectorIndexConfig — Vector index settings. Visible when enableVectorIndex is true. Includes vector path, data type, dimensions, distance function, and index type.
- enableFullTextIndex — Whether to enable full-text search indexing. Default: false.
- fullTextIndexPaths — Comma-separated list of paths to index for full-text search (e.g., /text,/content,/title). Visible when enableFullTextIndex is true. Default: /text.
Output shape
object containing success (boolean), statusCode (integer), containerId (string), databaseId (string), partitionKey (string), throughput (string or 'inherited/serverless'), message (string), and optionally vectorIndex and fullTextIndex objects when those features are enabled.
Returns container creation status. On HTTP 201, the container is created successfully with configuration details. If the container already exists (HTTP 409), the operation throws an error. Throughput defaults to 'inherited/serverless' when not explicitly set to >= 400 RU/s.