次の方法で共有


AzureOpenAIExtensions.AddDeployment Method

Definition

Adds an Azure OpenAI Deployment resource to the application model. This resource requires an AzureOpenAIResource to be added to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureOpenAIResource> AddDeployment (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureOpenAIResource> builder, Aspire.Hosting.ApplicationModel.AzureOpenAIDeployment deployment);
static member AddDeployment : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureOpenAIResource> * Aspire.Hosting.ApplicationModel.AzureOpenAIDeployment -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureOpenAIResource>
<Extension()>
Public Function AddDeployment (builder As IResourceBuilder(Of AzureOpenAIResource), deployment As AzureOpenAIDeployment) As IResourceBuilder(Of AzureOpenAIResource)

Parameters

builder
IResourceBuilder<AzureOpenAIResource>

The Azure OpenAI resource builder.

deployment
AzureOpenAIDeployment

The deployment to add.

Returns

A reference to the IResourceBuilder<T>.

Applies to