AzureAIFoundryExtensions.AddAzureAIFoundry Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>.