Partilhar via


AzureLogAnalyticsWorkspaceExtensions.AddAzureLogAnalyticsWorkspace Method

Definition

Overloads

AddAzureLogAnalyticsWorkspace(IDistributedApplicationBuilder, String)

Adds an Azure Application Insights resource to the application model.

AddAzureLogAnalyticsWorkspace(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureLogAnalyticsWorkspaceResource>, ResourceModuleConstruct,OperationalInsightsWorkspace>)

Adds an Azure Log Analytics Workspace resource to the application model.

AddAzureLogAnalyticsWorkspace(IDistributedApplicationBuilder, String)

Source:
AzureLogAnalyticsWorkspaceExtensions.cs
Source:
AzureLogAnalyticsWorkspaceExtensions.cs

Adds an Azure Application Insights resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureLogAnalyticsWorkspaceResource> AddAzureLogAnalyticsWorkspace (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureLogAnalyticsWorkspace : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureLogAnalyticsWorkspaceResource>
<Extension()>
Public Function AddAzureLogAnalyticsWorkspace (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureLogAnalyticsWorkspaceResource)

Parameters

name
String

The name of the resource. This name will be used as the connection string name when referenced in a dependency.

Returns

A reference to the IResourceBuilder<T>.

Applies to

AddAzureLogAnalyticsWorkspace(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureLogAnalyticsWorkspaceResource>, ResourceModuleConstruct,OperationalInsightsWorkspace>)

Source:
AzureLogAnalyticsWorkspaceExtensions.cs

Adds an Azure Log Analytics Workspace resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureLogAnalyticsWorkspaceResource> AddAzureLogAnalyticsWorkspace (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureLogAnalyticsWorkspaceResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace>? configureResource);
static member AddAzureLogAnalyticsWorkspace : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureLogAnalyticsWorkspaceResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.OperationalInsights.OperationalInsightsWorkspace> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureLogAnalyticsWorkspaceResource>
<Extension()>
Public Function AddAzureLogAnalyticsWorkspace (builder As IDistributedApplicationBuilder, name As String, configureResource As Action(Of IResourceBuilder(Of AzureLogAnalyticsWorkspaceResource), ResourceModuleConstruct, OperationalInsightsWorkspace)) As IResourceBuilder(Of AzureLogAnalyticsWorkspaceResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the resource.

configureResource
Action<IResourceBuilder<AzureLogAnalyticsWorkspaceResource>,ResourceModuleConstruct,OperationalInsightsWorkspace>

Optional callback to configure the Azure Log Analytics Workspace resource.

Returns

Applies to