addOllama
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addOllama( name: string, port?: number): OllamaResource;}Signature
method
addOllama builderAdds an Ollama container resource to the application model.
addOllama( name: string, port?: number): OllamaResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.portnumberoptionalAn optional fixed port to bind to the Ollama container. This will be provided randomly by Aspire if not set.Returns
OllamaResource Applies to
This method applies to the following types: