Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddDeployment

Method
📦 Aspire.Hosting.Azure.CognitiveServices v17.0.0
func (AzureOpenAIResource) AddDeployment(
name string,
modelName string,
modelVersion string,
) AzureOpenAIDeploymentResource

Signature

methodAddDeploymentbuilder
Adds an Azure OpenAI deployment resource
AddDeployment(
name string,
modelName string,
modelVersion string,
) AzureOpenAIDeploymentResource
namestringThe name of the Azure OpenAI Deployment resource.
modelNamestringThe name of the model to deploy.
modelVersionstringThe version of the model to deploy.
AzureOpenAIDeploymentResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: