Skip to main content
net8.0

Milvus vector database support for Aspire.

Published
Aug 25, 2026
1mo ago
Total Downloads
15.5K
15,459

Install

dotnet add package Aspire.Hosting.Milvus --version 13.5.3
ProductVersions
.NET
net8.0

README

Milvus hosting integration

Use this integration to model, configure, and orchestrate a Milvus vector database resource in an Aspire solution.

Getting started

Add the integration

From your AppHost directory, add the Aspire.Hosting.Milvus integration with the Aspire CLI:

aspire add Aspire.Hosting.Milvus

Usage example

In the AppHost, add a Milvus resource and reference it from another resource with either C# or TypeScript:

C#

var milvus = builder.AddMilvus("milvus");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(milvus);

TypeScript

const milvus = await builder.addMilvus("milvus");

const myService = await builder.addNodeApp("myService", "../my-service", "server.js")
                       .withReference(milvus);

Connection Properties

When you reference a Milvus resource using WithReference, the following connection properties are made available to the consuming project:

Milvus server

The Milvus server resource exposes the following connection properties:

Property Name Description
Host The hostname or IP address of the Milvus server
Port The gRPC port exposed by the Milvus server
Token The authentication token, with the format root:{ApiKey}
Uri The gRPC endpoint URI, with the format http://{Host}:{Port}

Milvus database

The Milvus database resource combines the server properties above and adds the following connection property:

Property Name Description
DatabaseName The Milvus database name

Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called db1 becomes DB1_URI.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

*Milvus and the Milvus logo are used with permission from the Milvus project. All rights reserved by LF AI & Data foundation.

Changes from Previous Version

No structural changes between v13.5.2 and v13.5.3.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.The published metadata declares 32 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.