AzureOpenAIExtensions.AddDeployment 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 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>.