# AzureAppServiceWebSiteResource Constructors

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

Represents an Azure App Service Web Site resource.

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

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

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

```csharp
public class AzureAppServiceWebSiteResource
{
    public AzureAppServiceWebSiteResource(
        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 resource that this Azure Web Site is being created for.
