AzureApplicationInsightsExtensions
Class static net8.0
Provides extension methods for adding the Azure ApplicationInsights resources to the application model.
namespace Aspire.Hosting;
public static class AzureApplicationInsightsExtensions{ // ...}Methods4
Section titled MethodsAddAzureApplicationInsights(IDistributedApplicationBuilder, string)extensionats exportIResourceBuilder<AzureApplicationInsightsResource> Adds an Azure Application Insights resource to the application model.
AddAzureApplicationInsights(IDistributedApplicationBuilder, string, IResourceBuilder<AzureLogAnalyticsWorkspaceResource>)extensionats ignoredIResourceBuilder<AzureApplicationInsightsResource> Adds an Azure Application Insights resource to the application model.
WithLogAnalyticsWorkspace(IResourceBuilder<AzureApplicationInsightsResource>, BicepOutputReference)extensionats ignoredIResourceBuilder<AzureApplicationInsightsResource> Configures the Application Insights resource to use an existing Log Analytics Workspace via a
Azure.BicepOutputReference. WithLogAnalyticsWorkspace(IResourceBuilder<AzureApplicationInsightsResource>, IResourceBuilder<AzureLogAnalyticsWorkspaceResource>)extensionats exportIResourceBuilder<AzureApplicationInsightsResource> Configures the Application Insights resource to use the specified Log Analytics Workspace resource.