Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithAppInsights

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (AzureCognitiveServicesProjectResource) WithAppInsights(appInsights AzureApplicationInsightsResource) AzureCognitiveServicesProjectResource

Signature

methodWithAppInsightsbuilder
Adds an Application Insights resource to the Microsoft Foundry project, overriding the default (which is to create a new Application Insights resource).
WithAppInsights(appInsights AzureApplicationInsightsResource) AzureCognitiveServicesProjectResource
appInsightsAzureApplicationInsightsResourceThe Application Insights resource to associate with the project.
AzureCognitiveServicesProjectResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: