Skip to main content

Azure Cosmos DB

Prefer guided AI setup?

Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.

Overview

Connect your Azure Cosmos DB to Nirvai to automate globally distributed NoSQL database operations.

Supported Authentication Methods

  • API Key (Master Key)

Prerequisites

  • An Azure account
  • An Azure Cosmos DB account
  • A database

Setup Instructions

API Key Authentication

  1. In Nirvai, go to Credentials > Add Credential
  2. Select Azure Cosmos DB
  3. Fill in the required fields:
    • Account Name: Your Cosmos DB account name
    • Master Key: Your primary or secondary key
    • Database Name: The database to connect to
  4. Click Save

Finding Your Credentials

  1. Go to Azure Portal
  2. Navigate to your Cosmos DB account
  3. Go to Keys
  4. Copy the Primary Key and URI

What You Can Do

  • Query documents
  • Create and delete items
  • Manage containers
  • Execute stored procedures
  • Read change feeds

Adapted from Microsoft documentation for Nirvai platform


Next Steps

Got your credential? Connect it to an agent

Use the AI Tool Creator to turn this credential into agent-callable tools. Describe what your agent should be able to do and the AI investigates the API, configures the endpoints, and gives you a reviewable toolkit before saving anything.