Skip to content
Docs Try Aspire

AzureCognitiveServicesProjectResource

Handle
📦 Aspire.Hosting.Foundry v13.2.0-preview.1.26170.3
interface AzureCognitiveServicesProjectResource
extends IAzureResource,
IComputeEnvironmentResource,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParameters,
IResourceWithParent,
FoundryResource]],
IValueProvider,
IValueWithReferences,
IAzureComputeEnvironmentResource {
addAndPublishPromptAgent(
model: FoundryDeploymentResource,
name: string,
instructions: string): AzurePromptAgentResource;
addContainerRegistryConnection(registry: AzureContainerRegistryResource): AzureCognitiveServicesProjectConnectionResource;
addCosmosConnection(db: AzureCosmosDBResource): AzureCognitiveServicesProjectConnectionResource;
addKeyVaultConnection(keyVault: AzureKeyVaultResource): AzureCognitiveServicesProjectConnectionResource;
addModelDeployment(
name: string,
modelName: string,
modelVersion: string,
format: string): FoundryDeploymentResource;
addModelDeploymentFromModel(
name: string,
model: FoundryModel): FoundryDeploymentResource;
addStorageConnection(storage: AzureStorageResource): AzureCognitiveServicesProjectConnectionResource;
withAppInsights(appInsights: AzureApplicationInsightsResource): AzureCognitiveServicesProjectResource;
withContainerRegistry(registryBuilder: AzureContainerRegistryResource): AzureCognitiveServicesProjectResource;
withKeyVault(keyVault: AzureKeyVaultResource): AzureCognitiveServicesProjectResource;
}

Methods

method addAndPublishPromptAgent builder
Adds and publishes a prompt agent to a Microsoft Foundry project.
addAndPublishPromptAgent(
model: FoundryDeploymentResource,
name: string,
instructions: string): AzurePromptAgentResource
model FoundryDeploymentResource
name string
instructions string
AzurePromptAgentResource
Adds an Azure Container Registry connection to a Microsoft Foundry project.
addContainerRegistryConnection(registry: AzureContainerRegistryResource): AzureCognitiveServicesProjectConnectionResource
registry AzureContainerRegistryResource
AzureCognitiveServicesProjectConnectionResource
method addCosmosConnection builder
Adds an Azure Cosmos DB connection to a Microsoft Foundry project.
addCosmosConnection(db: AzureCosmosDBResource): AzureCognitiveServicesProjectConnectionResource
db AzureCosmosDBResource
AzureCognitiveServicesProjectConnectionResource
method addKeyVaultConnection builder
Adds an Azure Key Vault connection to a Microsoft Foundry project.
addKeyVaultConnection(keyVault: AzureKeyVaultResource): AzureCognitiveServicesProjectConnectionResource
keyVault AzureKeyVaultResource
AzureCognitiveServicesProjectConnectionResource
method addModelDeployment builder
Adds a model deployment to the parent Microsoft Foundry resource.
addModelDeployment(
name: string,
modelName: string,
modelVersion: string,
format: string): FoundryDeploymentResource
name string
modelName string
modelVersion string
format string
FoundryDeploymentResource
Adds a model deployment to the parent Microsoft Foundry resource by using a model descriptor.
addModelDeploymentFromModel(
name: string,
model: FoundryModel): FoundryDeploymentResource
name string
model FoundryModel
FoundryDeploymentResource
method addStorageConnection builder
Adds an Azure Storage connection to a Microsoft Foundry project.
addStorageConnection(storage: AzureStorageResource): AzureCognitiveServicesProjectConnectionResource
storage AzureStorageResource
AzureCognitiveServicesProjectConnectionResource
method withAppInsights builder
Associates an Azure Application Insights resource with a Microsoft Foundry project.
withAppInsights(appInsights: AzureApplicationInsightsResource): AzureCognitiveServicesProjectResource
appInsights AzureApplicationInsightsResource
AzureCognitiveServicesProjectResource
method withContainerRegistry builder
Associates a container registry with a Microsoft Foundry project resource.
withContainerRegistry(registryBuilder: AzureContainerRegistryResource): AzureCognitiveServicesProjectResource
registryBuilder AzureContainerRegistryResource
AzureCognitiveServicesProjectResource
method withKeyVault builder
Associates an Azure Key Vault resource with a Microsoft Foundry project.
withKeyVault(keyVault: AzureKeyVaultResource): AzureCognitiveServicesProjectResource
keyVault AzureKeyVaultResource
AzureCognitiveServicesProjectResource