Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureContainerAppEnvironmentResource

Handle
📦 Aspire.Hosting.Azure.AppContainers v17.0.0
type AzureContainerAppEnvironmentResource interface {
ComputeEnvironmentResource
Resource
}

Methods

methodAsExpressbuilder
Configures the container app environment to publish and deploy HTTP applications using Azure Container Apps Express.
AsExpress() AzureContainerAppEnvironmentResource
AzureContainerAppEnvironmentResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

methodWithAcrPullIdentitybuilder
Configures the container app environment to use the supplied AzureUserAssignedIdentityResource as the managed identity that container apps in the environment 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) AzureContainerAppEnvironmentResource
identityBuilderAzureUserAssignedIdentityResourceThe resource builder for the user-assigned identity that should be used for image pulls. This identity is only used for the AcrPull role; it is not assigned to individual container apps in the environment.
AzureContainerAppEnvironmentResource

The IResourceBuilder for chaining.

Returns a handle; failures surface later via Err().

Configures the container app environment resources to use the same naming conventions as azd.
WithAzdResourceNaming() AzureContainerAppEnvironmentResource
AzureContainerAppEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Configures the container app environment resource to use the specified Log Analytics Workspace.
WithAzureLogAnalyticsWorkspace(workspaceBuilder AzureLogAnalyticsWorkspaceResource) AzureContainerAppEnvironmentResource
workspaceBuilderAzureLogAnalyticsWorkspaceResourceThe resource builder for the AzureLogAnalyticsWorkspaceResource to use.
AzureContainerAppEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Configures the container app environment to use compact resource naming that maximally preserves the uniqueString suffix for length-constrained Azure resources such as storage accounts.
WithCompactResourceNaming() AzureContainerAppEnvironmentResource
AzureContainerAppEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

methodWithDashboardbuilder
Configures whether the Aspire dashboard should be included in the container app environment.
WithDashboard(options ...*WithDashboardOptions) AzureContainerAppEnvironmentResource
options...*WithDashboardOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDashboardOptions argument.

Enable*boolWhether to include the Aspire dashboard. Default is true.
AzureContainerAppEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

methodWithHttpsUpgradebuilder
Configures whether HTTP endpoints should be upgraded to HTTPS in Azure Container Apps. By default, HTTP endpoints are upgraded to HTTPS for security and WebSocket compatibility.
WithHttpsUpgrade(options ...*WithHttpsUpgradeOptions) AzureContainerAppEnvironmentResource
options...*WithHttpsUpgradeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithHttpsUpgradeOptions argument.

Upgrade*boolWhether to upgrade HTTP endpoints to HTTPS. Default is true.
AzureContainerAppEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Configures the container app environment to incorporate its resource name into the generated managed environment name, so that multiple environments in the same resource group get distinct names.
WithUniqueResourceNaming() AzureContainerAppEnvironmentResource
AzureContainerAppEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().