Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureApplicationInsightsResource.WithLogAnalyticsWorkspace

Method
📦 Aspire.Hosting.Azure.ApplicationInsights v17.0.0
type AzureApplicationInsightsResource interface {
// ... omitted for brevity
WithLogAnalyticsWorkspace(logAnalyticsWorkspace AzureLogAnalyticsWorkspaceResource) AzureApplicationInsightsResource
}

Signature

methodWithLogAnalyticsWorkspacebuilder
Configures the Application Insights resource to use the specified Log Analytics Workspace resource.
WithLogAnalyticsWorkspace(logAnalyticsWorkspace AzureLogAnalyticsWorkspaceResource) AzureApplicationInsightsResource
logAnalyticsWorkspaceAzureLogAnalyticsWorkspaceResourceThe resource builder for the AzureLogAnalyticsWorkspaceResource.
AzureApplicationInsightsResource

The resource builder.

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

Defined on

This method is defined on the following type: