AzureAppServiceEnvironmentResource
Handle
interface AzureAppServiceEnvironmentResource extends IAzureResource, IComputeEnvironmentResource, IContainerRegistry, IResource, IResourceWithParameters, IAzureCdnPrivateLinkTarget, IAzureComputeEnvironmentResource, IAzureContainerRegistry, IAzureDelegatedSubnetResource { withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureAppServiceEnvironmentResource; withAzureApplicationInsights(applicationInsights?: string | ParameterResource | AzureApplicationInsightsResource): AzureAppServiceEnvironmentResource; withDashboard(enable?: boolean): AzureAppServiceEnvironmentResource; withDeploymentSlot(deploymentSlot: string | ParameterResource): AzureAppServiceEnvironmentResource; withHttpsUpgrade(upgrade?: boolean): AzureAppServiceEnvironmentResource;}5 members
Methods
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): AzureAppServiceEnvironmentResourceParameters
identityBuilder AzureUserAssignedIdentityResource The resource builder for the user-assigned identity that should be used for image pulls. The supplied identity must already have the `AcrPull` role on the configured container registry.Returns
AzureAppServiceEnvironmentResource Enables Azure Application Insights for the Azure App Service environment
withAzureApplicationInsights(applicationInsights?: string | ParameterResource | AzureApplicationInsightsResource): AzureAppServiceEnvironmentResourceParameters
applicationInsights string | ParameterResource | AzureApplicationInsightsResource optionalReturns
AzureAppServiceEnvironmentResource Configures whether the Aspire dashboard should be included in the Azure App Service environment.
withDashboard(enable?: boolean): AzureAppServiceEnvironmentResourceParameters
enablebooleanoptional= TrueWhether to include the Aspire dashboard. Default is true.Returns
AzureAppServiceEnvironmentResource Configures the deployment slot for all Azure App Services in the environment
withDeploymentSlot(deploymentSlot: string | ParameterResource): AzureAppServiceEnvironmentResourceParameters
deploymentSlot string | ParameterResource Returns
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.
withHttpsUpgrade(upgrade?: boolean): AzureAppServiceEnvironmentResourceParameters
upgradebooleanoptional= TrueWhether to upgrade HTTP endpoints to HTTPS. Default is true.Returns
AzureAppServiceEnvironmentResource