Share via


AzureKustoBuilderExtensions.AddReadWriteDatabase Method

Definition

Adds a Kusto read-write database to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoReadWriteDatabaseResource> AddReadWriteDatabase(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoClusterResource> builder, string name, string? databaseName = default);
static member AddReadWriteDatabase : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoClusterResource> * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.Kusto.AzureKustoReadWriteDatabaseResource>
<Extension()>
Public Function AddReadWriteDatabase (builder As IResourceBuilder(Of AzureKustoClusterResource), name As String, Optional databaseName As String = Nothing) As IResourceBuilder(Of AzureKustoReadWriteDatabaseResource)

Parameters

builder
IResourceBuilder<AzureKustoClusterResource>

The Kusto server resource builder.

name
String

The name of the resource. This name will be used as the connection string name when referenced in a dependency.

databaseName
String

The name of the database. If not provided, this defaults to the same value as name.

Returns

A reference to the IResourceBuilder<T>.

Applies to