# AzureContainerAppEnvironmentResource

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

## Definition

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

## Methods

- [withAzdResourceNaming](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withazdresourcenaming.md) -- `method` -- Configures resources to use azd naming conventions
    ```typescript
  withAzdResourceNaming(): AzureContainerAppEnvironmentResource
  ```
- [withAzureLogAnalyticsWorkspace](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withazureloganalyticsworkspace.md) -- `method` -- Configures the container app environment to use a specific Log Analytics Workspace
    ```typescript
  withAzureLogAnalyticsWorkspace(workspaceBuilder: AzureLogAnalyticsWorkspaceResource): AzureContainerAppEnvironmentResource
  ```
- [withCompactResourceNaming](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withcompactresourcenaming.md) -- `method` -- Configures resources to use compact naming for length-constrained Azure resources
    ```typescript
  withCompactResourceNaming(): AzureContainerAppEnvironmentResource
  ```
- [withDashboard](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/withdashboard.md) -- `method` -- Configures whether the Aspire dashboard is 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 are upgraded to HTTPS
    ```typescript
  withHttpsUpgrade(upgrade?: boolean): AzureContainerAppEnvironmentResource
  ```
