Watch Aspire live streamsDocsTry Aspire

addAzureLogAnalyticsWorkspace

Method
📦 Aspire.Hosting.Azure.OperationalInsights v13.6.5
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addAzureLogAnalyticsWorkspace(name: string): AzureLogAnalyticsWorkspaceResource;
}

Signature

methodaddAzureLogAnalyticsWorkspacebuilder
Adds an Azure Log Analytics Workspace resource to the application model.
addAzureLogAnalyticsWorkspace(name: string): AzureLogAnalyticsWorkspaceResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
AzureLogAnalyticsWorkspaceResource

Applies to

This method applies to the following types: