Share via


AzureAIFoundryExtensions.AddAzureAIFoundry Method

Definition

Adds an Azure OpenAI resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAIFoundryResource> AddAzureAIFoundry(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureAIFoundry : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAIFoundryResource>
<Extension()>
Public Function AddAzureAIFoundry (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureAIFoundryResource)

Parameters

name
String

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

Returns

A reference to the IResourceBuilder<T>.

Applies to