# AzureContainerAppEnvironmentResource Constructors

- Package: [Aspire.Hosting.Azure.AppContainers](/reference/api/csharp/aspire.hosting.azure.appcontainers.md)
- Type: [AzureContainerAppEnvironmentResource](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure Container App Environment resource.

## AzureContainerAppEnvironmentResource(string, Action<AzureResourceInfrastructure>)

- Name: `Constructor(string, Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppEnvironmentResource.cs#L38-L273)

Initializes a new instance of the [AzureContainerAppEnvironmentResource](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md) class.

```csharp
public class AzureContainerAppEnvironmentResource
{
    public AzureContainerAppEnvironmentResource(
        string name,
        Action<AzureResourceInfrastructure> configureInfrastructure)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the Container App Environment.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  The callback to configure the Azure infrastructure for this resource.
