# AzureAppServiceEnvironmentResource Constructors

- Package: [Aspire.Hosting.Azure.AppService](/reference/api/csharp/aspire.hosting.azure.appservice.md)
- Type: [AzureAppServiceEnvironmentResource](/reference/api/csharp/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure App Service Environment resource.

## AzureAppServiceEnvironmentResource(string, Action<AzureResourceInfrastructure>)

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

Initializes a new instance of the [AzureAppServiceEnvironmentResource](/reference/api/csharp/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md) class.

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

## Parameters

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