Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureApplicationInsights

Method
📦 Aspire.Hosting.Azure.ApplicationInsights v17.0.0
func (DistributedApplicationBuilder) AddAzureApplicationInsights(name string) AzureApplicationInsightsResource

Signature

methodAddAzureApplicationInsightsbuilder
Adds an Azure Application Insights resource to the application model.
AddAzureApplicationInsights(name string) AzureApplicationInsightsResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
AzureApplicationInsightsResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder