Skip to content
Docs Try Aspire
Docs Try

AzureAppServiceEnvironmentResource

Handle
📦 Aspire.Hosting.Azure.AppService v13.4.0
interface AzureAppServiceEnvironmentResource
extends IAzureResource,
IComputeEnvironmentResource,
IContainerRegistry,
IResource,
IResourceWithParameters,
IAzureComputeEnvironmentResource,
IAzureContainerRegistry {
withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureAppServiceEnvironmentResource;
withAzureApplicationInsights(applicationInsights?: AzureApplicationInsightsResource): AzureAppServiceEnvironmentResource;
withDashboard(enable?: boolean): AzureAppServiceEnvironmentResource;
withDeploymentSlot(deploymentSlot: ParameterResource): AzureAppServiceEnvironmentResource;
withHttpsUpgrade(upgrade?: boolean): AzureAppServiceEnvironmentResource;
}

Methods

method withAcrPullIdentity builder
Configures the Azure App Service environment to use the supplied `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.
withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureAppServiceEnvironmentResource
identityBuilder AzureUserAssignedIdentityResource
AzureAppServiceEnvironmentResource
Enables Azure Application Insights for the Azure App Service environment
withAzureApplicationInsights(applicationInsights?: AzureApplicationInsightsResource): AzureAppServiceEnvironmentResource
applicationInsights AzureApplicationInsightsResource optional
AzureAppServiceEnvironmentResource
method withDashboard builder
Configures whether the Aspire dashboard should be included in the Azure App Service environment.
withDashboard(enable?: boolean): AzureAppServiceEnvironmentResource
enable boolean optional = True
AzureAppServiceEnvironmentResource
method withDeploymentSlot builder
Configures the deployment slot for all Azure App Services in the environment
withDeploymentSlot(deploymentSlot: ParameterResource): AzureAppServiceEnvironmentResource
deploymentSlot ParameterResource
AzureAppServiceEnvironmentResource
method withHttpsUpgrade builder
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.
withHttpsUpgrade(upgrade?: boolean): AzureAppServiceEnvironmentResource
upgrade boolean optional = True
AzureAppServiceEnvironmentResource