# AzureSandboxOptions

- 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/AzureSandboxContainerOptionsAnnotation.cs)

Configures Azure sandbox runtime options for a compute resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class AzureSandboxOptions
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

- [AzureSandboxOptions](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/constructors.md#constructor)

## Properties

- [AutoDeleteEnabled](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#autodeleteenabled) : `bool?` `get; set` -- Gets or sets a value indicating whether auto-delete is enabled.
- [AutoDeleteInterval](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#autodeleteinterval) : `TimeSpan?` `get; set` -- Gets or sets the interval before auto-delete runs.
- [AutoDeleteTrigger](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#autodeletetrigger) : [AzureSandboxAutoDeleteTrigger?](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxautodeletetrigger.md) `get; set` -- Gets or sets the event that starts the auto-delete interval.
- [AutoSuspendEnabled](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#autosuspendenabled) : `bool?` `get; set` -- Gets or sets a value indicating whether auto-suspend is enabled.
- [AutoSuspendInterval](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#autosuspendinterval) : `TimeSpan?` `get; set` -- Gets or sets the idle interval before auto-suspend runs.
- [AutoSuspendMode](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#autosuspendmode) : [AzureSandboxAutoSuspendMode?](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxautosuspendmode.md) `get; set` -- Gets or sets the sandbox suspend mode.
- [Endpoints](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#endpoints) : `AzureSandboxEndpointOptions[]?` `get; set` -- Gets or sets endpoint-specific sandbox option overrides.
- [Tier](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions/properties.md#tier) : [AzureSandboxTier](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxtier.md) `get; set` -- Gets or sets the resource tier.
