FoundryExtensions
Class static net8.0
Provides extension methods for adding the Microsoft Foundry resources to the application model.
namespace Aspire.Hosting;
public static class FoundryExtensions{ // ...} 6 members
Methods6
Section titled MethodsAddDeployment(IResourceBuilder<FoundryResource>, string, string, string, string)extensionats exportIResourceBuilder<FoundryDeploymentResource> Adds and returns a Microsoft Foundry Deployment resource (e.g. an AI model) to the application model.
AddDeployment(IResourceBuilder<FoundryResource>, string, FoundryModel)extensionats exportIResourceBuilder<FoundryDeploymentResource> Adds and returns a Microsoft Foundry Deployment resource to the application model using a
FoundryModel. AddFoundry(IDistributedApplicationBuilder, string)extensionats exportIResourceBuilder<FoundryResource> Adds a Microsoft Foundry resource to the application model.
RunAsFoundryLocal(IResourceBuilder<FoundryResource>)extensionats exportIResourceBuilder<FoundryResource> Adds a Foundry Local resource to the distributed application builder.
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.