# AzureApplicationInsightsResource

- Module: [Aspire.Hosting.Azure.ApplicationInsights](/reference/api/go/aspire.hosting.azure.applicationinsights.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

## Definition

```go
type AzureApplicationInsightsResource interface {
    ExpressionValue
    Resource
    ResourceWithConnectionString
}
```

## Embeds

- `ExpressionValue`
- `Resource`
- `ResourceWithConnectionString`

## Methods

- [WithLogAnalyticsWorkspace](/reference/api/go/aspire.hosting.azure.applicationinsights/azureapplicationinsightsresource/withloganalyticsworkspace.md) -- `method` -- Configures the Application Insights resource to use the specified Log Analytics Workspace resource.
  ```go
  WithLogAnalyticsWorkspace(logAnalyticsWorkspace AzureLogAnalyticsWorkspaceResource) AzureApplicationInsightsResource
  ```
