Skip to content
Docs Try Aspire

AzureLogAnalyticsWorkspaceExtensions Methods

Class Methods 1 member
Provides extension methods for adding the Azure Log Analytics Workspace resources to the application model.
AddAzureLogAnalyticsWorkspace(IDistributedApplicationBuilder, string) Section titled AddAzureLogAnalyticsWorkspace(IDistributedApplicationBuilder, string) extension IResourceBuilder<AzureLogAnalyticsWorkspaceResource>
Adds an Azure Log Analytics Workspace resource to the application model.
public static class AzureLogAnalyticsWorkspaceExtensions
{
public static IResourceBuilder<AzureLogAnalyticsWorkspaceResource> AddAzureLogAnalyticsWorkspace(
this IDistributedApplicationBuilder builder,
string name)
{
// ...
}
}
builder IDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder.
name string The name of the resource. This name will be used as the connection string name when referenced in a dependency.
IResourceBuilder<AzureLogAnalyticsWorkspaceResource> A reference to the ApplicationModel.IResourceBuilder`1.