FoundryExtensions
Classstaticnet10.0
Provides extension methods for adding the Microsoft Foundry resources to the application model.
namespace Aspire.Hosting;
public static class FoundryExtensions{ // ...}7 members
Methods7
Section titled MethodsAddDeployment(IResourceBuilder<FoundryResource>, string, string, string, string) extensionats ignoredIResourceBuilder<FoundryDeploymentResource> Adds and returns a Microsoft Foundry Deployment resource (e.g. an AI model) to the application model.
IResourceBuilder<FoundryDeploymentResource> Adds and returns a Microsoft Foundry Deployment resource to the application model using a
FoundryModel . IResourceBuilder<FoundryResource> Adds a Microsoft Foundry resource to the application model.
IResourceBuilder<FoundryResource> Configures a Microsoft Foundry resource to use an Aspire-managed Foundry Local service.
IResourceBuilder<FoundryResource> Configures a Microsoft Foundry resource to use an Aspire-managed or existing Foundry Local service.
WithProperties(IResourceBuilder<FoundryDeploymentResource>, Action<FoundryDeploymentResource>) extensionats exportIResourceBuilder<FoundryDeploymentResource> Allows setting the properties of a Microsoft Foundry Deployment resource.
WithRoleAssignments(IResourceBuilder<T>, IResourceBuilder<FoundryResource>, CognitiveServicesBuiltInRole[]) extensionats ignoredIResourceBuilder<T> Assigns the specified roles to the given resource, granting it the necessary permissions on the target Microsoft Foundry resource. This replaces the default role assignments for the resource.