# withCompactResourceNaming

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

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.

## Definition

```typescript
interface AzureContainerAppEnvironmentResource {
  // ... omitted for brevity
  withCompactResourceNaming(): AzureContainerAppEnvironmentResource
}
```

## Returns

[AzureContainerAppEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md) `builder`

## Applies to

- [AzureContainerAppEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md)
