# 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/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppEnvironmentResource.cs#L37-L267)

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.
