Atc.Aspire.Hosting.Azure.Kusto 1.2.0

dotnet add package Atc.Aspire.Hosting.Azure.Kusto --version 1.2.0                
NuGet\Install-Package Atc.Aspire.Hosting.Azure.Kusto -Version 1.2.0                
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="Atc.Aspire.Hosting.Azure.Kusto" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Atc.Aspire.Hosting.Azure.Kusto --version 1.2.0                
#r "nuget: Atc.Aspire.Hosting.Azure.Kusto, 1.2.0"                
#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.
// Install Atc.Aspire.Hosting.Azure.Kusto as a Cake Addin
#addin nuget:?package=Atc.Aspire.Hosting.Azure.Kusto&version=1.2.0

// Install Atc.Aspire.Hosting.Azure.Kusto as a Cake Tool
#tool nuget:?package=Atc.Aspire.Hosting.Azure.Kusto&version=1.2.0                

Introduction

NuGet Version

The Atc.Aspire.Hosting.Azure.Kusto package provides an Aspire Hosting Integration for running Azure Data Explorer (Kusto Emulator) containers within a .NET Aspire distributed application. It enables easy setup of Kusto instances with health checks, connection string handling, and default configurations.

Table of Content

Getting Started

Installation

Install the package via NuGet:

dotnet add package Atc.Aspire.Hosting.Azure.Kusto

Wire-Up

Register a Kusto emulator container in your AppHost's Program.cs:

var builder = DistributedApplication.CreateBuilder(args);

var kusto = builder.AddKustainer("kusto-emulator");

builder.Build().Run();

This will configure the emulator with a default HTTP port and include it in your distributed application.

If your service needs access to the emulator, reference it in your project:

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

Your MyService project can now resolve the Kusto connection string automatically.

Configuration

Using a Custom Port

By default, the emulator runs on port 8080. You can override this by specifying a custom port:

var kusto = builder.AddKustainer("kusto-emulator", httpPort: 9090);

Configuring Data Volumes

To persist data across container restarts, you can attach a named volume:

kusto.WithDataVolume();

Alternatively, specify a custom volume name:

kusto.WithDataVolume("my-kusto-data");

HealthChecks

The emulator includes built-in health checks. These are automatically added but can be configured if needed:

builder.Services.AddHealthChecks()
    .AddCheck<KustoHealthCheck>("kusto_check");

Requirements

How to contribute

Contribution Guidelines

Coding Guidelines

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
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
1.2.0 11 2/6/2025
1.1.0 8 2/6/2025