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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Nubilus.Azure.Cosmos" Version="11.0.366" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Nubilus.Azure.Cosmos" Version="11.0.366" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Nubilus.Azure.Cosmos" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Nubilus.Azure.Cosmos --version 11.0.366
                    
#r "nuget: Soenneker.Nubilus.Azure.Cosmos, 11.0.366"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Nubilus.Azure.Cosmos@11.0.366
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Nubilus.Azure.Cosmos&version=11.0.366
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Nubilus.Azure.Cosmos&version=11.0.366
                    
Install as a Cake Tool

Soenneker.Nubilus.Azure.Cosmos

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Updated Soenneker.Azure.Utils.ArmClientUtil to 11.0.456