Share via


AzureKustoBuilderExtensions.RunAsEmulator Method

Definition

Configures the Kusto resource to run as an emulator using the Kustainer container.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoClusterResource> RunAsEmulator(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoClusterResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoEmulatorResource>>? configureContainer = default);
static member RunAsEmulator : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoClusterResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoEmulatorResource>> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoClusterResource>
<Extension()>
Public Function RunAsEmulator (builder As IResourceBuilder(Of AzureKustoClusterResource), Optional configureContainer As Action(Of IResourceBuilder(Of AzureKustoEmulatorResource)) = Nothing) As IResourceBuilder(Of AzureKustoClusterResource)

Parameters

builder
IResourceBuilder<AzureKustoClusterResource>

The resource builder to configure.

configureContainer
Action<IResourceBuilder<AzureKustoEmulatorResource>>

Optional action to configure the Kusto emulator container.

Returns

The resource builder.

Remarks

This version of the package defaults to the <inheritdoc cref="P:Aspire.Hosting.Azure.Kusto.AzureKustoEmulatorContainerImageTags.Tag"></inheritdoc> tag of the <inheritdoc cref="P:Aspire.Hosting.Azure.Kusto.AzureKustoEmulatorContainerImageTags.Registry"></inheritdoc>/<inheritdoc cref="P:Aspire.Hosting.Azure.Kusto.AzureKustoEmulatorContainerImageTags.Image"></inheritdoc> container image.

Applies to