AzureCognitiveServicesProjectExtensions
Class static net8.0
Extension methods for adding Microsoft Foundry project resources to the distributed application model.
namespace Aspire.Hosting;
public static class AzureCognitiveServicesProjectExtensions{ // ...} 9 members
Methods9
Section titled MethodsAddCapabilityHost(IResourceBuilder<AzureCognitiveServicesProjectResource>, string)extensionats ignored Adds a capability host to the Microsoft Foundry project, enabling agent capabilities with external Azure resources such as CosmosDB, Storage, and Search.
AddModelDeployment(IResourceBuilder<AzureCognitiveServicesProjectResource>, string, FoundryModel)extensionats exportIResourceBuilder<FoundryDeploymentResource> Adds a model deployment to the parent Microsoft Foundry resource of the Microsoft Foundry project.
AddModelDeployment(IResourceBuilder<AzureCognitiveServicesProjectResource>, string, string, string, string)extensionats exportIResourceBuilder<FoundryDeploymentResource> Adds a model deployment to the parent Microsoft Foundry resource of the Microsoft Foundry project.
AddProject(IResourceBuilder<FoundryResource>, string)extensionats exportIResourceBuilder<AzureCognitiveServicesProjectResource> Adds a Microsoft Foundry project resource to the application model. This will also attach the project as a deployment target for agents.
WithAppInsights(IResourceBuilder<AzureCognitiveServicesProjectResource>, IResourceBuilder<AzureApplicationInsightsResource>)extensionats exportIResourceBuilder<AzureCognitiveServicesProjectResource> Adds an Application Insights resource to the Microsoft Foundry project, overriding the default (which is to create a new Application Insights resource).
WithContainerRegistry(IResourceBuilder<AzureCognitiveServicesProjectResource>, IResourceBuilder<AzureContainerRegistryResource>)extensionats exportIResourceBuilder<AzureCognitiveServicesProjectResource> Associates a container registry with the Microsoft Foundry project resource for publishing and locating hosted agents.
WithContainerRegistry(IResourceBuilder<AzureCognitiveServicesProjectResource>, IContainerRegistry)extensionats ignoredIResourceBuilder<AzureCognitiveServicesProjectResource> Associates a container registry with the Microsoft Foundry project resource for publishing and locating hosted agents.
WithKeyVault(IResourceBuilder<AzureCognitiveServicesProjectResource>, IResourceBuilder<AzureKeyVaultResource>)extensionats exportIResourceBuilder<AzureCognitiveServicesProjectResource> Adds a Key Vault connection to the Microsoft Foundry project.
WithReference(IResourceBuilder<TDestination>, IResourceBuilder<AzureCognitiveServicesProjectResource>)extensionats ignoredIResourceBuilder<TDestination> Adds a reference to a Microsoft Foundry project resource to the destination resource.