AzureApplicationInsightsExtensions
Class static net10.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)extensionIResourceBuilder<AzureApplicationInsightsResource> Adds an Azure Application Insights resource to the application model.
AddAzureApplicationInsights(IDistributedApplicationBuilder, string, IResourceBuilder<AzureLogAnalyticsWorkspaceResource>)extensionIResourceBuilder<AzureApplicationInsightsResource> Adds an Azure Application Insights resource to the application model.
WithLogAnalyticsWorkspace(IResourceBuilder<AzureApplicationInsightsResource>, BicepOutputReference)extensionIResourceBuilder<AzureApplicationInsightsResource> Configures the Application Insights resource to use an existing Log Analytics Workspace via a
Azure.BicepOutputReference. WithLogAnalyticsWorkspace(IResourceBuilder<AzureApplicationInsightsResource>, IResourceBuilder<AzureLogAnalyticsWorkspaceResource>)extensionIResourceBuilder<AzureApplicationInsightsResource> Configures the Application Insights resource to use the specified Log Analytics Workspace resource.