# AzureContainerAppEnvironmentResource

- Module: [Aspire.Hosting.Azure.AppContainers](/reference/api/go/aspire.hosting.azure.appcontainers.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

## Definition

```go
type AzureContainerAppEnvironmentResource interface {
    ComputeEnvironmentResource
    Resource
}
```

## Embeds

- `ComputeEnvironmentResource`
- `Resource`

## Methods

- [AsExpress](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/asexpress.md) -- `method` -- Configures the container app environment to publish and deploy HTTP applications using Azure Container Apps Express.
  ```go
  AsExpress() AzureContainerAppEnvironmentResource
  ```
- [WithAcrPullIdentity](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withacrpullidentity.md) -- `method` -- 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.
  ```go
  WithAcrPullIdentity(identityBuilder AzureUserAssignedIdentityResource) AzureContainerAppEnvironmentResource
  ```
- [WithAzdResourceNaming](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withazdresourcenaming.md) -- `method` -- Configures the container app environment resources to use the same naming conventions as azd.
  ```go
  WithAzdResourceNaming() AzureContainerAppEnvironmentResource
  ```
- [WithAzureLogAnalyticsWorkspace](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withazureloganalyticsworkspace.md) -- `method` -- Configures the container app environment resource to use the specified Log Analytics Workspace.
  ```go
  WithAzureLogAnalyticsWorkspace(workspaceBuilder AzureLogAnalyticsWorkspaceResource) AzureContainerAppEnvironmentResource
  ```
- [WithCompactResourceNaming](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withcompactresourcenaming.md) -- `method` -- 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.
  ```go
  WithCompactResourceNaming() AzureContainerAppEnvironmentResource
  ```
- [WithDashboard](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withdashboard.md) -- `method` -- Configures whether the Aspire dashboard should be included in the container app environment.
  ```go
  WithDashboard(options ...*WithDashboardOptions) AzureContainerAppEnvironmentResource
  ```
- [WithHttpsUpgrade](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withhttpsupgrade.md) -- `method` -- 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.
  ```go
  WithHttpsUpgrade(options ...*WithHttpsUpgradeOptions) AzureContainerAppEnvironmentResource
  ```
- [WithUniqueResourceNaming](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withuniqueresourcenaming.md) -- `method` -- 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.
  ```go
  WithUniqueResourceNaming() AzureContainerAppEnvironmentResource
  ```
