AzureAIFoundryExtensions.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 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>.