# AzureAppServiceEnvironmentResource

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

Represents an Azure App Service Environment resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

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

## Constructors

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

## Properties

- [AzureAppInsightsConnectionStringReference](/reference/api/csharp/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/properties.md#azureappinsightsconnectionstringreference) : `BicepOutputReference` `get` -- Gets the Application Insights Connection String.
- [AzureAppInsightsInstrumentationKeyReference](/reference/api/csharp/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/properties.md#azureappinsightsinstrumentationkeyreference) : `BicepOutputReference` `get` -- Gets the Application Insights Instrumentation Key.
- [ContainerRegistry](/reference/api/csharp/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/properties.md#containerregistry) : `AzureContainerRegistryResource?` `get` -- Gets the Azure Container Registry resource used by this Azure App Service Environment resource.
- [DashboardUriReference](/reference/api/csharp/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/properties.md#dashboardurireference) : `BicepOutputReference` `get` -- Gets the URI of the App Service Environment dashboard.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.appservice/azureappserviceenvironmentresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the name of the App Service Plan.

## Methods

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