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
<PackageReference Include="Atc.Aspire.Hosting.Azure.Kusto" Version="1.2.0" />
paket add Atc.Aspire.Hosting.Azure.Kusto --version 1.2.0
#r "nuget: Atc.Aspire.Hosting.Azure.Kusto, 1.2.0"
// 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
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
Product | Versions 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. |
-
net9.0
- Aspire.Hosting (>= 9.0.0)
- Microsoft.Azure.Kusto.Data (>= 13.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.