# AzureSandboxGroupResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Sandboxes](/reference/api/csharp/aspire.hosting.azure.sandboxes.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxGroupResource.cs)
- Inherits: `AzureProvisioningResource`
- Implements: `IComputeEnvironmentResource`, `IResource`, `IAzureComputeEnvironmentResource`

Represents an Azure Container Apps sandbox group.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class AzureSandboxGroupResource
    : Aspire.Hosting.Azure.AzureProvisioningResource,
      Aspire.Hosting.ApplicationModel.IComputeEnvironmentResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.Azure.IAzureComputeEnvironmentResource
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Azure.Sandboxes/AzureSandboxGroupResource`

## Constructors

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

## Properties

- [ContainerRegistry](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource/properties.md#containerregistry) : `AzureContainerRegistryResource?` `get` -- Gets the Azure Container Registry resource used by this sandbox group.
- [IdOutputReference](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource/properties.md#idoutputreference) : `BicepOutputReference` `get` -- Gets the Azure resource ID output reference.
- [LocationOutputReference](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource/properties.md#locationoutputreference) : `BicepOutputReference` `get` -- Gets the Azure resource location output reference.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the Azure resource name output reference.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource` -- Adds a new `Primitives.ProvisionableResource` into `infra`. The new resource represents a reference to the current `Azure.AzureProvisioningResource` via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource.
- [GetEndpointPropertyExpression(EndpointReferenceExpression)](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource/methods.md#getendpointpropertyexpression-endpointreferenceexpression) : `ReferenceExpression` `experimental` -- Gets a `ApplicationModel.ReferenceExpression` representing a deployed endpoint property for the specified `ApplicationModel.EndpointReferenceExpression`.
- [GetHostAddressExpression(EndpointReference)](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxgroupresource/methods.md#gethostaddressexpression-endpointreference) : `ReferenceExpression` `experimental` -- Gets a `ApplicationModel.ReferenceExpression` representing the host address or host name for the specified `ApplicationModel.EndpointReference`.
