AzureAppServiceEnvironmentExtensions.WithAzureApplicationInsights Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>) |
Configures whether Azure Application Insights should be enabled for the Azure App Service. |
| WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<ParameterResource>) |
Configures whether Azure Application Insights should be enabled for the Azure App Service. |
| WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<AzureApplicationInsightsResource>) |
Configures whether Azure Application Insights should be enabled for the Azure App Service. |
| WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, String) |
Configures whether Azure Application Insights should be enabled for the Azure App Service. |
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>)
Configures whether Azure Application Insights should be enabled for the Azure App Service.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> WithAzureApplicationInsights(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> builder);
static member WithAzureApplicationInsights : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource>
<Extension()>
Public Function WithAzureApplicationInsights (builder As IResourceBuilder(Of AzureAppServiceEnvironmentResource)) As IResourceBuilder(Of AzureAppServiceEnvironmentResource)
Parameters
The AzureAppServiceEnvironmentResource to configure.
Returns
Applies to
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<ParameterResource>)
Configures whether Azure Application Insights should be enabled for the Azure App Service.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> WithAzureApplicationInsights(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> applicationInsightsLocation);
static member WithAzureApplicationInsights : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource>
<Extension()>
Public Function WithAzureApplicationInsights (builder As IResourceBuilder(Of AzureAppServiceEnvironmentResource), applicationInsightsLocation As IResourceBuilder(Of ParameterResource)) As IResourceBuilder(Of AzureAppServiceEnvironmentResource)
Parameters
The AzureAppServiceEnvironmentResource to configure.
- applicationInsightsLocation
- IResourceBuilder<ParameterResource>
The location parameter for Application Insights.
Returns
Applies to
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<AzureApplicationInsightsResource>)
Configures whether Azure Application Insights should be enabled for the Azure App Service.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> WithAzureApplicationInsights(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureApplicationInsightsResource> applicationInsightsBuilder);
static member WithAzureApplicationInsights : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureApplicationInsightsResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource>
<Extension()>
Public Function WithAzureApplicationInsights (builder As IResourceBuilder(Of AzureAppServiceEnvironmentResource), applicationInsightsBuilder As IResourceBuilder(Of AzureApplicationInsightsResource)) As IResourceBuilder(Of AzureAppServiceEnvironmentResource)
Parameters
The AzureAppServiceEnvironmentResource builder to configure.
- applicationInsightsBuilder
- IResourceBuilder<AzureApplicationInsightsResource>
The Application Insights resource builder.
Returns
Applies to
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, String)
Configures whether Azure Application Insights should be enabled for the Azure App Service.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> WithAzureApplicationInsights(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> builder, string applicationInsightsLocation);
static member WithAzureApplicationInsights : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource>
<Extension()>
Public Function WithAzureApplicationInsights (builder As IResourceBuilder(Of AzureAppServiceEnvironmentResource), applicationInsightsLocation As String) As IResourceBuilder(Of AzureAppServiceEnvironmentResource)
Parameters
The AzureAppServiceEnvironmentResource to configure.
- applicationInsightsLocation
- String
The location for Application Insights.