---
title: "Manage Azure Cosmos DB with Nodinite: Remote Actions, Queries, Throughput, and Keys"
description: Manage Azure Cosmos DB databases and containers from Nodinite. Use remote actions to inspect resources, browse documents, run approved queries, create containers, change throughput, and rotate keys with role-based controls.
---

# <i class="fal fa-wrench" aria-hidden="true"></i> Managing Cosmos DB in Azure

Use <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> to manage everyday Azure Cosmos DB operations without opening the Azure Portal. This page explains the [Remote Actions][] available for Cosmos DB databases and containers, including document inspection, approved queries, container creation, throughput changes, and key management.

<sup><span class="nodinite-new-badge">New 7.9.x</span></sup> This feature adds native Cosmos DB management in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, including document browsing, approved queries, throughput control, container creation, and key handling.

* ✅ Inspect databases and containers from a single interface  
* ✅ Run approved read-only queries without exposing ad-hoc SQL  
* ✅ Create or delete containers with administrator-approved guardrails  
* ✅ Change RU/s or switch to autoscale without direct Azure access  
* ✅ Rotate account keys safely while keeping secrets masked  

The management experience is available from the [Remote Actions][] menu of the relevant [Resources][] in [Monitor Views][]. Depending on the action and the permissions granted by the administrator, support staff and operations [Users][] work with Cosmos DB resources within the guardrails configured in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>.

> Start with [Monitoring Cosmos DB][Azure Agent - Monitoring Cosmos DB] if you want to understand how the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Azure Agent][] discovers, evaluates, and surfaces Cosmos DB databases and containers in the monitor view before using the management actions.

<div class="mermaid">
graph TD
    A["fa:fa-user User in Nodinite"] --> B["fa:fa-bolt Remote Action"]
    B --> C["fa:fa-database Cosmos DB Database"]
    B --> D["fa:fa-boxes Cosmos DB Container"]
    C --> E["fa:fa-circle-info Details"]
    C --> F["fa:fa-file-lines Query"]
    C --> G["fa:fa-gauge Throughput"]
    C --> H["fa:fa-key Keys"]
    C --> I["fa:fa-square-plus Create Container"]
    D --> J["fa:fa-circle-info Details"]
    D --> K["fa:fa-sign-out Post"]
    style E fill:#2678BD,color:#fff
    style F fill:#2678BD,color:#fff
    style J fill:#2678BD,color:#fff
    style G fill:#93d16d
    style H fill:#93d16d
    style I fill:#93d16d
    style K fill:#E47528,color:#fff
</div>

*Diagram: The available Cosmos DB remote actions grouped by database and container context; blue actions view data, green actions change configuration, and orange actions write data.*

## <i class="fal fa-ballot-check" aria-hidden="true"></i> Available Management Features

### <i class="fal fa-database" aria-hidden="true"></i> Cosmos DB Database

The **Cosmos DB** [Category][Categories] provides management for the database-level resources in a monitored Cosmos account.

|Action|Purpose|Notes|
|---|---|---|
|<i class="fal fa-circle-info" aria-hidden="true"></i> [Details](#fa-magnifying-glass-details-and-document-browsing)|Inspect the database and its containers|Shows account, subscription, tenant, region, and container inventory|
|<i class="fal fa-file-lines" aria-hidden="true"></i> [Query](#fa-file-lines-approved-queries)|Run an administrator-approved read-only query|Only approved queries are available and only for the selected container|
|<i class="fal fa-gauge" aria-hidden="true"></i> [Throughput](#fa-arrow-up-right-from-square-throughput-and-cost-guardrails)|View or change RU/s settings|Supports manual or autoscale configuration when enabled|
|<i class="fal fa-key" aria-hidden="true"></i> [Keys](#fa-key-keys-and-secret-handling)|View masked keys and connection strings|Regeneration is available when the required Azure credentials are present|
|<i class="fal fa-square-plus" aria-hidden="true"></i> [Create Container](#fa-plus-create-and-delete-containers)|Add a new container|Requires the appropriate administrator gate and available RU/s|
|<i class="fal fa-edit" aria-hidden="true"></i> Edit|Update the friendly description of the monitored account|Maintains a readable inventory in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>|

<h3 id="fa-boxes-cosmos-db---container"><i class="fal fa-boxes" aria-hidden="true"></i> Cosmos DB - Container</h3>

The **Cosmos DB - Container** [Category][Categories] provides container-level management actions.

|Action|Purpose|Notes|
|---|---|---|
|<i class="fal fa-circle-info" aria-hidden="true"></i> [Details](#fa-magnifying-glass-details-and-document-browsing)|Inspect the container and browse documents|Shows partition key details, TTL, RU/s, and a paged document list|
|<i class="fal fa-sign-out" aria-hidden="true"></i> Post|Insert a JSON document|<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> generates a missing document ID automatically|

## <i class="fal fa-magnifying-glass" aria-hidden="true"></i> Details and Document Browsing

The **Details** action opens the resource context for the selected database or container. For containers, you can browse documents directly from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>. The dialog shows the document list in pages of 25 items, with up to 500 documents available for browsing from the UI.

Support teams use document browsing to confirm whether a message or record actually reached Cosmos DB and what it looked like at the time of inspection. For end-to-end tracking of the business messages themselves, combine this with <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Views][].

## <i class="fal fa-file-lines" aria-hidden="true"></i> Approved Queries

The **Query** action offers a list of administrator-approved read-only queries. The user cannot type arbitrary SQL. Instead, the user selects a named query and runs it against the selected container.

The action returns the result as a table plus raw JSON and is limited to 100 rows per execution. Recurring support questions become easy to answer safely, without exposing the full database to first-line staff.

## <i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i> Throughput and Cost Guardrails

The **Throughput** action lets an authorized user review the current database and container RU/s configuration and change it when enabled. The action can show:

* Whether the database uses shared throughput
* Whether the mode is manual or autoscale
* The current RU/s values for the database and each container

Administrators can also configure minimum and maximum RU/s guardrails so employees can make changes within approved limits. These limits help prevent accidental overspend and keep cost control in place.

## <i class="fal fa-key" aria-hidden="true"></i> Keys and Secret Handling

The **Keys** action shows masked account keys and connection strings. The browser never receives the full secret. If the required Azure service-principal credentials are present, the user can also regenerate the primary or secondary read-write key.

If those credentials are not available, the action remains read-only and clearly informs the operator that Azure credentials are required for regeneration. The [Azure rights][Prerequisites - Azure rights] in the Prerequisites and the [least privileges][AzureApplicationsAccess - Least Privileges] page list the role the App Registration needs on the Cosmos DB account.

## <i class="fal fa-plus" aria-hidden="true"></i> Create and Delete Containers

The **Create Container** action lets approved users add a container with a name, partition key, and either manual RU/s or autoscale maximum. The configured RU/s settings and the remaining available throughput for the account constrain the action.

The **Delete container** action is available from the details view and requires explicit confirmation, because it removes the container and all its data.

## <i class="fal fa-shield-check" aria-hidden="true"></i> Built-in Safety Behaviour

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> applies several protections by default:

* <i class="fal fa-eye-slash" aria-hidden="true"></i> **Secrets stay masked** – keys and connection strings are never shown in full.
* <i class="fal fa-lock" aria-hidden="true"></i> **Read-only queries only** – the query action rejects anything that is not a read-only SELECT.
* <i class="fal fa-hand" aria-hidden="true"></i> **No ad-hoc SQL** – the user picks from approved queries rather than writing arbitrary queries.
* <i class="fal fa-trash-can" aria-hidden="true"></i> **Delete confirmation** – container deletion always requires an explicit confirmation step.
* <i class="fal fa-chart-line" aria-hidden="true"></i> **Bounded cost** – document browsing is capped and query results are capped to prevent runaway RU usage.

## <i class="fal fa-question" aria-hidden="true"></i> Frequently Asked Questions

Use the [Troubleshooting][] guide for known issues with the Azure Agent.

### <i class="fal fa-square-plus" aria-hidden="true"></i> Who can use these actions?

The availability of each action depends on the permissions granted in [Roles][] and the action gates the administrator enables in the [Remote Configuration][] of the agent. Some actions are read-only by default, while throughput updates, container creation, and deletion require explicit enablement.

### <i class="fal fa-square-plus" aria-hidden="true"></i> What if Azure credentials are missing?

The user can still inspect the resource and view masked connection details, but throughput changes and key regeneration require the Azure credentials configured for the subscription in the agent [Configuration][].

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-display" aria-hidden="true"></i> [Monitor Cosmos DB][Azure Agent - Monitoring Cosmos DB]  
* <i class="fal fa-heart-pulse" aria-hidden="true"></i> [Cosmos DB Monitoring Scripts][] – the **Details** and **Edit** actions of script resources  
* <i class="fal fa-edit" aria-hidden="true"></i> [Configure the Azure Agent][Configuration]  
* <i class="fal fa-cloud" aria-hidden="true"></i> [Azure Logging and Monitoring Overview][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-cloud" aria-hidden="true"></i> [Azure Monitoring Agent][Azure Agent]  
* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [Prerequisites][]  
* <i class="fal fa-bolt" aria-hidden="true"></i> [Remote Actions][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Azure SQL Database][]  
* <i class="fal fa-lightbulb-on" aria-hidden="true"></i> [Resources][]  
* <i class="fal fa-folder" aria-hidden="true"></i> [Categories][]  
* <i class="fal fa-box-open" aria-hidden="true"></i> [Applications][]  
* <i class="fal fa-question" aria-hidden="true"></i> [Troubleshooting][]  

[Applications]:https://docs.nodinite.com/administration/monitor-management/applications/features/what-is-an-application/
[Azure Agent]:https://docs.nodinite.com/logging-and-monitoring/azure/overview/
[Azure Agent - Monitoring Cosmos DB]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/monitoring-cosmos-db/
[Azure Logging and Monitoring Overview]:https://docs.nodinite.com/logging-and-monitoring/azure/features/overview/
[Azure SQL Database]:https://docs.nodinite.com/logging-and-monitoring/database/features/azure-sql-database/overview/
[AzureApplicationsAccess - Least Privileges]:https://docs.nodinite.com/install-and-update/troubleshooting/azure/azure-application-access-least-privileges/#permission-table
[Categories]:https://docs.nodinite.com/administration/monitor-management/categories/features/what-is-a-category/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/configuration/
[Cosmos DB Monitoring Scripts]:https://docs.nodinite.com/logging-and-monitoring/azure/features/cosmos-db/cosmos-db-monitoring-scripts/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/prerequisites/
[Prerequisites - Azure rights]:https://docs.nodinite.com/logging-and-monitoring/azure/getting-started/prerequisites/#fa-cloud-what-azure-user-rights-and-services-does-the-azure-agent-require
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Remote Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/how-do-i-configure-a-monitor-agent/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/azure/troubleshooting/overview/
[Users]:https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/