Watch Aspire live streamsDocsTry Aspire

FoundryResource

Handle
📦 Aspire.Hosting.Foundry v13.6.0-preview.1.26478.8
interface FoundryResource
extends IAzureResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithParameters,
IValueProvider,
IValueWithReferences,
IAzureNspAssociationTarget,
IAzurePrivateEndpointTarget {
addDeployment(
name: string,
model: FoundryModel | string,
modelVersion?: string,
format?: string): FoundryDeploymentResource;
addProject(name: string): AzureCognitiveServicesProjectResource;
runAsFoundryLocal(endpoint?: string): FoundryResource;
}

Methods

methodaddDeploymentbuilder
Adds a Microsoft Foundry deployment resource to a Microsoft Foundry resource.
addDeployment(
name: string,
model: FoundryModel | string,
modelVersion?: string,
format?: string): FoundryDeploymentResource
namestring
modelFoundryModel | string
modelVersionstringoptional
formatstringoptional
FoundryDeploymentResource
methodaddProjectbuilder
Adds a Microsoft Foundry project resource to the application model. This will also attach the project as a deployment target for agents.
addProject(name: string): AzureCognitiveServicesProjectResource
namestring
AzureCognitiveServicesProjectResource
methodrunAsFoundryLocalbuilder
Configures a Microsoft Foundry resource to use an Aspire-managed or existing Foundry Local service.
runAsFoundryLocal(endpoint?: string): FoundryResource
endpointstringoptional
FoundryResource