Cosmos DB icon

Cosmos DB

Cosmos DB Node - Upsert documents to Azure Cosmos DB

Database → Create

AI-generated

Summary

Create a new database in the Azure Cosmos DB account with a specified name and optional provisioned throughput (RU/s). Supports authentication via Master Key, Microsoft Entra ID (Azure AD), or a development override with custom endpoint and token.

Inputs

  • Authentication Type — Select the authentication method to connect to Cosmos DB, either Master Key or Microsoft Entra ID (Azure AD).
  • Database Name (required) — Specify the name of the new database to create. The name must be 1 to 255 characters long and contain only letters, numbers, hyphens, or underscores.
  • Throughput (RU/s) — Optionally provide manual provisioned throughput in Request Units per second; use 0 to apply shared or serverless account defaults.
  • Use Dev Override (Custom Endpoint + Token) — Enable to bypass OAuth and use a manually supplied Cosmos DB endpoint URL and bearer token, useful for development environments.
  • Custom Endpoint — The Cosmos DB account endpoint URL to use if Dev Override is enabled.
  • Custom Access Token — A bearer token scoped to https://cosmos.azure.com/, usable with expressions, required if Dev Override is enabled.

Output shape

a single record representing the created database object.

Returns the created database resource object if successful, including its properties such as the ID. Returns an error if the database name is invalid or the creation fails.

Links

Discussion