Share via


AzureAIFoundryExtensions.AddDeployment Method

Definition

Adds and returns an Azure AI Foundry Deployment resource to the application model.

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

Parameters

builder
IResourceBuilder<AzureAIFoundryResource>

The Azure AI Foundry resource builder.

name
String

The name of the Azure AI Foundry Deployment resource.

modelName
String

The name of the model to deploy.

modelVersion
String

The version of the model to deploy.

format
String

The format of the model to deploy.

Returns

A reference to the IResourceBuilder<T>.

Applies to