# WithAzdResourceNaming

- Module: [Aspire.Hosting.Azure.AppContainers](/reference/api/go/aspire.hosting.azure.appcontainers.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`AzureContainerAppEnvironmentResource`](/reference/api/go/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

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
func (AzureContainerAppEnvironmentResource) WithAzdResourceNaming() AzureContainerAppEnvironmentResource
```

## Returns

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

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

## Applies to

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