addOllamaLocal
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addOllamaLocal( name: string, port?: number, targetPort?: number): OllamaExecutableResource;}Signature
method
addOllamaLocal builderAdds an Ollama executable resource to the application model.
addOllamaLocal( name: string, port?: number, targetPort?: number): OllamaExecutableResourceParameters
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 process. This will be provided randomly by Aspire if not set.targetPort numberoptionalAn optional fixed port to run the Ollama process. This will default to 11434 if not set.Returns
OllamaExecutableResource Applies to
This method applies to the following types: