Soenneker.Nubilus.Azure.Cosmos
11.0.366
Prefix Reserved
dotnet add package Soenneker.Nubilus.Azure.Cosmos --version 11.0.366
NuGet\Install-Package Soenneker.Nubilus.Azure.Cosmos -Version 11.0.366
<PackageReference Include="Soenneker.Nubilus.Azure.Cosmos" Version="11.0.366" />
<PackageVersion Include="Soenneker.Nubilus.Azure.Cosmos" Version="11.0.366" />
<PackageReference Include="Soenneker.Nubilus.Azure.Cosmos" />
paket add Soenneker.Nubilus.Azure.Cosmos --version 11.0.366
#r "nuget: Soenneker.Nubilus.Azure.Cosmos, 11.0.366"
#:package Soenneker.Nubilus.Azure.Cosmos@11.0.366
#addin nuget:?package=Soenneker.Nubilus.Azure.Cosmos&version=11.0.366
#tool nuget:?package=Soenneker.Nubilus.Azure.Cosmos&version=11.0.366
Soenneker.Nubilus.Azure.Cosmos
Fetches existing Azure Cosmos DB accounts through Azure Resource Manager using a shared authenticated ArmClient.
Installation
dotnet add package Soenneker.Nubilus.Azure.Cosmos
Configuration
The underlying ARM client uses an application registration:
{
"Azure": {
"TenantId": "tenant-id",
"AppRegistration": {
"Id": "client-id",
"Secret": "client-secret"
}
}
}
Store the client secret in a secret provider rather than a committed settings file. Grant the application only the Azure role permissions needed to read the target Cosmos DB accounts.
Registration
using Soenneker.Nubilus.Azure.Cosmos.Registrars;
builder.Services.AddNubilusCosmosManagerAsScoped();
// or: builder.Services.AddNubilusCosmosManagerAsSingleton();
Both registrations keep the authenticated ARM client utility singleton. The scoped option only scopes the lightweight manager wrapper.
Fetch an account
using Azure.Core;
using Azure.ResourceManager.CosmosDB;
using Soenneker.Nubilus.Azure.Cosmos.Abstract;
var resourceId = new ResourceIdentifier(
"/subscriptions/00000000-0000-0000-0000-000000000000" +
"/resourceGroups/data-production" +
"/providers/Microsoft.DocumentDB/databaseAccounts/orders-cosmos");
CosmosDBAccountResource account = await cosmos.GetAccount(resourceId, cancellationToken);
The method performs an ARM GET request and returns the current resource, not merely a local handle. Authentication failures, authorization failures, malformed or wrong resource identifiers, missing accounts, service errors, and cancellation are surfaced through the Azure SDK.
This package does not create, update, delete, or enumerate accounts, and it does not provide data-plane access to databases or containers.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Azure.ResourceManager.CosmosDB (>= 1.5.0)
- Soenneker.Azure.Utils.ArmClientUtil (>= 11.0.456)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.366 | 75 | 11/19/2026 |
| 11.0.365 | 76 | 11/18/2026 |
| 11.0.363 | 101 | 11/11/2026 |
| 11.0.362 | 92 | 11/11/2026 |
| 11.0.361 | 109 | 11/2/2026 |
| 11.0.360 | 107 | 10/27/2026 |
| 11.0.359 | 99 | 10/27/2026 |
| 11.0.358 | 100 | 10/27/2026 |
| 11.0.357 | 101 | 10/27/2026 |
| 11.0.356 | 101 | 10/26/2026 |
| 11.0.355 | 101 | 10/26/2026 |
| 11.0.354 | 92 | 10/26/2026 |
| 11.0.353 | 92 | 10/26/2026 |
| 11.0.352 | 98 | 10/26/2026 |
| 11.0.351 | 98 | 10/26/2026 |
| 11.0.350 | 99 | 10/26/2026 |
| 4.0.349 | 98 | 10/25/2026 |
| 4.0.348 | 109 | 10/15/2026 |
| 4.0.347 | 110 | 10/15/2026 |
| 4.0.346 | 115 | 10/14/2026 |
Updated Soenneker.Azure.Utils.ArmClientUtil to 11.0.456