Skip to main content
Published
Apr 8, 2026
6mo ago
Total Downloads
12.4K
12,376

Install

dotnet add package Aspire.Hosting.Azure.Kusto --version 13.2.2-preview.1.26207.2
ProductVersions
.NET
net8.0

README

Aspire.Hosting.Azure.Kusto library

Provides extension methods and resource definitions for an Aspire AppHost to configure a Kusto resource.

Getting started

Install the package

In your AppHost project, install the Aspire Azure Kusto Hosting library with NuGet:

dotnet add package Aspire.Hosting.Azure.Kusto

Usage example

Then, in the AppHost.cs file of AppHost, add a Kusto resource and consume the connection using the following method:

var db = builder.AddAzureKustoCluster("kusto")
                .RunAsEmulator()
                .AddReadWriteDatabase("mydb");

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

Connection Properties

When you reference Azure Kusto resources using WithReference, the following connection properties are made available to the consuming project:

Cluster Resource

Property Name Description
Uri The cluster endpoint URI, typically https://<cluster-name>.<region>.kusto.windows.net/ (or the HTTP endpoint when using the emulator)

Database Resource

Property Name Description
Uri The cluster endpoint URI (inherited from parent cluster)
DatabaseName The name of the database

Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called mydb becomes MYDB_URI, and the DatabaseName property becomes MYDB_DATABASENAME.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

Changes from Previous Version

No structural changes between v13.2.1-preview.1.26180.6 and v13.2.2-preview.1.26207.2.

Adoption Assessment

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

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.The published metadata declares 35 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.