# AzureSandboxGroupResource Constructors

- Package: [Aspire.Hosting.Azure.Sandboxes](/reference/api/csharp/aspire.hosting.azure.sandboxes.md)
- Type: [AzureSandboxGroupResource](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure Container Apps sandbox group.

<a id="constructor"></a>
<a id="constructor-string-action-azureresourceinfrastructure"></a>

## AzureSandboxGroupResource(string, Action<AzureResourceInfrastructure>)

- Name: `Constructor(string, Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxGroupResource.cs#L38-L130)

Initializes a new instance of the [AzureSandboxGroupResource](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource.md) class.

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

## Parameters

- `name` (`string`)
  The Aspire resource name.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  The callback that configures Azure provisioning infrastructure.
