Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithLogAnalyticsWorkspace

Method
📦 Aspire.Hosting.Azure.ApplicationInsights v17.0.0
func (AzureApplicationInsightsResource) 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().

Applies to

This method applies to the following types: