# AzureContainerAppResource Constructors

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

Represents an Azure Container App resource.

## AzureContainerAppResource(string, Action<AzureResourceInfrastructure>, IResource)

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

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

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

## Parameters

- `name` (`string`)
  The name of the resource in the Aspire application model.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  Callback to configure the Azure resources.
- `targetResource` (`IResource`)
  The target compute resource that this Azure Container App is being created for.
