# AzureContainerAppEnvironmentResource

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

## Definition

```typescript
interface AzureContainerAppEnvironmentResource
  extends IAzureResource,
    IComputeEnvironmentResource,
    IContainerRegistry,
    IResource,
    IResourceWithParameters,
    IAzureComputeEnvironmentResource,
    IAzureContainerRegistry,
    IAzureDelegatedSubnetResource {
  withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureContainerAppEnvironmentResource;
  withAzdResourceNaming(): AzureContainerAppEnvironmentResource;
  withAzureLogAnalyticsWorkspace(workspaceBuilder: AzureLogAnalyticsWorkspaceResource): AzureContainerAppEnvironmentResource;
  withCompactResourceNaming(): AzureContainerAppEnvironmentResource;
  withDashboard(enable?: boolean): AzureContainerAppEnvironmentResource;
  withHttpsUpgrade(upgrade?: boolean): AzureContainerAppEnvironmentResource;
}
```

## Methods

- [withAcrPullIdentity](/reference/api/typescript/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.
    ```typescript
  withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureContainerAppEnvironmentResource
  ```
- [withAzdResourceNaming](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withazdresourcenaming.md) -- `method` -- Configures the container app environment resources to use the same naming conventions as azd.
    ```typescript
  withAzdResourceNaming(): AzureContainerAppEnvironmentResource
  ```
- [withAzureLogAnalyticsWorkspace](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withazureloganalyticsworkspace.md) -- `method` -- Configures the container app environment resource to use the specified Log Analytics Workspace.
    ```typescript
  withAzureLogAnalyticsWorkspace(workspaceBuilder: AzureLogAnalyticsWorkspaceResource): AzureContainerAppEnvironmentResource
  ```
- [withCompactResourceNaming](/reference/api/typescript/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.
    ```typescript
  withCompactResourceNaming(): AzureContainerAppEnvironmentResource
  ```
- [withDashboard](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withdashboard.md) -- `method` -- Configures whether the Aspire dashboard should be included in the container app environment.
    ```typescript
  withDashboard(enable?: boolean): AzureContainerAppEnvironmentResource
  ```
- [withHttpsUpgrade](/reference/api/typescript/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.
    ```typescript
  withHttpsUpgrade(upgrade?: boolean): AzureContainerAppEnvironmentResource
  ```
