Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureLogAnalyticsWorkspace

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

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder