Skip to content
Docs Try Aspire
Docs Try

AzureAppServiceEnvironmentExtensions

Class static net8.0
📦 Aspire.Hosting.Azure.AppService v13.4.0
Extensions for adding Azure App Service Environment resources to a distributed application builder.
namespace Aspire.Hosting;
public static class AzureAppServiceEnvironmentExtensions
{
// ...
}
AddAzureAppServiceEnvironment(IDistributedApplicationBuilder, string)extensionats export
IResourceBuilder<AzureAppServiceEnvironmentResource>
Adds a azure app service environment resource to the distributed application builder.
WithAcrPullIdentity(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<AzureUserAssignedIdentityResource>)extensionats export
IResourceBuilder<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 ignored
IResourceBuilder<AzureAppServiceEnvironmentResource>
Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, string)extensionats ignored
IResourceBuilder<AzureAppServiceEnvironmentResource>
Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<ParameterResource>)extensionats ignored
IResourceBuilder<AzureAppServiceEnvironmentResource>
Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithAzureApplicationInsights(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<AzureApplicationInsightsResource>)extensionats ignored
IResourceBuilder<AzureAppServiceEnvironmentResource>
Configures whether Azure Application Insights should be enabled for the Azure App Service.
WithDashboard(IResourceBuilder<AzureAppServiceEnvironmentResource>, bool)extensionats export
IResourceBuilder<AzureAppServiceEnvironmentResource>
Configures whether the Aspire dashboard should be included in the Azure App Service environment.
WithDeploymentSlot(IResourceBuilder<AzureAppServiceEnvironmentResource>, IResourceBuilder<ParameterResource>)extensionats ignored
IResourceBuilder<AzureAppServiceEnvironmentResource>
Configures the slot to which the Azure App Services should be deployed.
WithDeploymentSlot(IResourceBuilder<AzureAppServiceEnvironmentResource>, string)extensionats ignored
IResourceBuilder<AzureAppServiceEnvironmentResource>
Configures the slot to which the Azure App Services should be deployed.
WithHttpsUpgrade(IResourceBuilder<AzureAppServiceEnvironmentResource>, bool)extensionats export
IResourceBuilder<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.
View all methods