Skip to content
Docs Try Aspire

AzureCognitiveServicesProjectExtensions

Class static net8.0
📦 Aspire.Hosting.Foundry v13.2.0-preview.1.26170.3
Extension methods for adding Microsoft Foundry project resources to the distributed application model.
namespace Aspire.Hosting;
public static class AzureCognitiveServicesProjectExtensions
{
// ...
}
AddCapabilityHost(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 export
IResourceBuilder<FoundryDeploymentResource>
Adds a model deployment to the parent Microsoft Foundry resource of the Microsoft Foundry project.
AddModelDeployment(IResourceBuilder<AzureCognitiveServicesProjectResource>, string, string, string, string)extensionats export
IResourceBuilder<FoundryDeploymentResource>
Adds a model deployment to the parent Microsoft Foundry resource of the Microsoft Foundry project.
AddProject(IResourceBuilder<FoundryResource>, string)extensionats export
IResourceBuilder<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 export
IResourceBuilder<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 export
IResourceBuilder<AzureCognitiveServicesProjectResource>
Associates a container registry with the Microsoft Foundry project resource for publishing and locating hosted agents.
WithContainerRegistry(IResourceBuilder<AzureCognitiveServicesProjectResource>, IContainerRegistry)extensionats ignored
IResourceBuilder<AzureCognitiveServicesProjectResource>
Associates a container registry with the Microsoft Foundry project resource for publishing and locating hosted agents.
WithKeyVault(IResourceBuilder<AzureCognitiveServicesProjectResource>, IResourceBuilder<AzureKeyVaultResource>)extensionats export
IResourceBuilder<AzureCognitiveServicesProjectResource>
Adds a Key Vault connection to the Microsoft Foundry project.
WithReference(IResourceBuilder<TDestination>, IResourceBuilder<AzureCognitiveServicesProjectResource>)extensionats ignored
IResourceBuilder<TDestination>
Adds a reference to a Microsoft Foundry project resource to the destination resource.
View all methods