# AzureContainerAppEnvironmentResource.WithAzdResourceNaming

- Module: [Aspire.Hosting.Azure.AppContainers](/reference/api/go/aspire.hosting.azure.appcontainers.md)
- Defined on: [AzureContainerAppEnvironmentResource](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md)
- Version: `17.0.0`
- Kind: `method`

Configures the container app environment resources to use the same naming conventions as azd.

## Remarks

By default, the container app environment resources use a different naming convention than azd.
This method allows for reusing the previously deployed resources if the application was deployed using
azd without calling `AddAzureContainerAppEnvironment`

## Definition

```go
type AzureContainerAppEnvironmentResource interface {
    // ... omitted for brevity
    WithAzdResourceNaming() AzureContainerAppEnvironmentResource
}
```

## Signature

```go
WithAzdResourceNaming() AzureContainerAppEnvironmentResource
```

## Returns

[`AzureContainerAppEnvironmentResource`](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md) -- The resource builder.

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

## Defined on

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