Skip to content
Docs Try Aspire

AzureCognitiveServicesProjectResource

Class net8.0
📦 Aspire.Hosting.Foundry v13.2.0-preview.1.26170.3
The Microsoft Foundry project resource that can be used for Microsoft Foundry AI agents. This also functions as an Aspire compute environment resource for deployment.
namespace Aspire.Hosting.Foundry;
public class AzureCognitiveServicesProjectResource
: Aspire.Hosting.Foundry.AzureProvisionableAspireResourceWithParent<Azure.Provisioning.CognitiveServices.CognitiveServicesProject, Aspire.Hosting.Foundry.FoundryResource>,
Aspire.Hosting.ApplicationModel.IComputeEnvironmentResource,
Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
Aspire.Hosting.ApplicationModel.IResource,
Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
Aspire.Hosting.ApplicationModel.IValueProvider,
Aspire.Hosting.ApplicationModel.IValueWithReferences,
Aspire.Hosting.Azure.IAzureComputeEnvironmentResource
{
// ...
}
AzureProvisionableAspireResourceWithParent<CognitiveServicesProject, FoundryResource>IComputeEnvironmentResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferencesIAzureComputeEnvironmentResource
View all constructors
AppInsightsget; set
AzureApplicationInsightsResource?
The Application Insights resource associated with this project, if any. This will be used as the destination for server-side telemetry from hosted agents and optionally for client-side telemetry if the application decides to use it.
CapabilityHostConfigurationget; set
The capability host resources associated with this project, if any
ConnectionStringExpressionget
ReferenceExpression
Gets the .NET-style connection string for the project API endpoint.
ContainerRegistryget
AzureContainerRegistryResource?
Gets the Azure Container Registry resource used by this project.
Endpointget
BicepOutputReference
Gets the "endpoint" output reference from the Microsoft Foundry project resource. This will be used to instantiate the AI project clients. Will be of the format https:/{accountName}.services.ai.azure.com/api/projects/{projectName}?api-version={apiVersion}
Idget
BicepOutputReference
Azure Resource ID output reference.
KeyVaultConnget; set
Connection to the user-assigned key vault, if any.
PrincipalIdget
BicepOutputReference
Gets the managed identity principal ID, whether system-assigned or user-assigned.
UriExpressionget
ReferenceExpression
Gets the Microsoft Foundry project endpoint as a ReferenceExpression that can be used in environment variables or connection strings. This will be used to instantiate the AI project clients. Will be of the format https:/{accountName}.services.ai.azure.com/api/projects/{projectName}?api-version={apiVersion}
View all properties
View all methods