AzureAppServiceEnvironmentExtensions
Class static net8.0
Extensions for adding Azure App Service Environment resources to a distributed application builder.
namespace Aspire.Hosting;
public static class AzureAppServiceEnvironmentExtensions{ // ...} 10 members
Methods10
Section titled MethodsAddAzureAppServiceEnvironment(IDistributedApplicationBuilder, string)extensionats exportIResourceBuilder<AzureAppServiceEnvironmentResource> Adds a azure app service environment resource to the distributed application builder.
WithAcrPullIdentity(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<AzureUserAssignedIdentityResource>)extensionats exportIResourceBuilder<AzureAppServiceEnvironmentResource> Configures the Azure App Service environment to use the supplied
Azure.AzureUserAssignedIdentityResource as the managed identity that App Service apps use to pull images from the configured container registry (the AcrPull identity), instead of having Aspire create a new identity and a new AcrPull role assignment. WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>)extensionats ignoredIResourceBuilder<AzureAppServiceEnvironmentResource> Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, string)extensionats ignoredIResourceBuilder<AzureAppServiceEnvironmentResource> Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<ParameterResource>)extensionats ignoredIResourceBuilder<AzureAppServiceEnvironmentResource> Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<AzureApplicationInsightsResource>)extensionats ignoredIResourceBuilder<AzureAppServiceEnvironmentResource> Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithDashboard(IResourceBuilder<AzureAppServiceEnvironmentResource>, bool)extensionats exportIResourceBuilder<AzureAppServiceEnvironmentResource> Configures whether the Aspire dashboard should be included in the Azure App Service environment.
WithDeploymentSlot(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<ParameterResource>)extensionats ignoredIResourceBuilder<AzureAppServiceEnvironmentResource> Configures the slot to which the Azure App Services should be deployed.
WithDeploymentSlot(IResourceBuilder<AzureAppServiceEnvironmentResource>, string)extensionats ignoredIResourceBuilder<AzureAppServiceEnvironmentResource> Configures the slot to which the Azure App Services should be deployed.
WithHttpsUpgrade(IResourceBuilder<AzureAppServiceEnvironmentResource>, bool)extensionats exportIResourceBuilder<AzureAppServiceEnvironmentResource> Configures whether HTTP endpoints should be automatically upgraded to HTTPS for the Azure App Service environment. By default, HTTP endpoints are upgraded to HTTPS for security and WebSocket compatibility.