# AzureContainerAppEnvironmentResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.AppContainers](/reference/api/csharp/aspire.hosting.azure.appcontainers.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure.AppContainers`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppEnvironmentResource.cs)
- Inherits: `AzureProvisioningResource`
- Implements: `IComputeEnvironmentResource`, `IContainerRegistry`, `IResource`, `IAzureComputeEnvironmentResource`, `IAzureContainerRegistry`, `IAzureDelegatedSubnetResource`

Represents an Azure Container App Environment resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure.AppContainers;

public class AzureContainerAppEnvironmentResource
    : Aspire.Hosting.Azure.AzureProvisioningResource,
      Aspire.Hosting.ApplicationModel.IComputeEnvironmentResource,
      Aspire.Hosting.ApplicationModel.IContainerRegistry,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.Azure.IAzureComputeEnvironmentResource,
      Aspire.Hosting.Azure.IAzureContainerRegistry,
      Aspire.Hosting.Azure.IAzureDelegatedSubnetResource
{
    // ...
}
```

## Constructors

- [AzureContainerAppEnvironmentResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Initializes a new instance of the [AzureContainerAppEnvironmentResource](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md) class.

## Properties

- [ContainerRegistry](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/properties.md#containerregistry) : `AzureContainerRegistryResource?` `get` -- Gets the Azure Container Registry resource used by this Azure Container App Environment resource.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the name of the Container App Environment.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource`
- [GetEndpointPropertyExpression(EndpointReferenceExpression)](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/methods.md#getendpointpropertyexpression-endpointreferenceexpression) : `ReferenceExpression` `experimental`
- [GetHostAddressExpression(EndpointReference)](/reference/api/csharp/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource/methods.md#gethostaddressexpression-endpointreference) : `ReferenceExpression` `experimental`
