Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddFoundry

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (DistributedApplicationBuilder) AddFoundry(name string) FoundryResource

Signature

methodAddFoundrybuilder
Adds a Microsoft Foundry resource to the application model.
AddFoundry(name string) FoundryResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
FoundryResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder