AzureAIFoundryExtensions
Class static net10.0
Provides extension methods for adding the Azure AI Foundry resources to the application model.
namespace Aspire.Hosting;
public static class AzureAIFoundryExtensions{ // ...} 6 members
Methods6
Section titled MethodsAddAzureAIFoundry(IDistributedApplicationBuilder, string)extensionIResourceBuilder<AzureAIFoundryResource> Adds an Azure OpenAI resource to the application model.
AddDeployment(IResourceBuilder<AzureAIFoundryResource>, string, string, string, string)extensionIResourceBuilder<AzureAIFoundryDeploymentResource> Adds and returns an Azure AI Foundry Deployment resource to the application model.
AddDeployment(IResourceBuilder<AzureAIFoundryResource>, string, AIFoundryModel)extensionIResourceBuilder<AzureAIFoundryDeploymentResource> Adds and returns an Azure AI Foundry Deployment resource to the application model using a
AIFoundryModel. RunAsFoundryLocal(IResourceBuilder<AzureAIFoundryResource>)extensionIResourceBuilder<AzureAIFoundryResource> Adds a Foundry Local resource to the distributed application builder.
WithProperties(IResourceBuilder<AzureAIFoundryDeploymentResource>, Action<AzureAIFoundryDeploymentResource>)extensionIResourceBuilder<AzureAIFoundryDeploymentResource> Allows setting the properties of an Azure AI Foundry Deployment resource.
WithRoleAssignments(IResourceBuilder<T>, IResourceBuilder<AzureAIFoundryResource>, CognitiveServicesBuiltInRole[])extensionIResourceBuilder<T> Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure AI Foundry resource. This replaces the default role assignments for the resource.