# AzureSandboxOptions Properties

- Package: [Aspire.Hosting.Azure.Sandboxes](/reference/api/csharp/aspire.hosting.azure.sandboxes.md)
- Type: [AzureSandboxOptions](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxoptions.md)
- Kind: `Properties`
- Members: `8`

Configures Azure sandbox runtime options for a compute resource.

<a id="autodeleteenabled"></a>

## AutoDeleteEnabled

- Name: `AutoDeleteEnabled`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets a value indicating whether auto-delete is enabled.

```csharp
public bool? AutoDeleteEnabled { get; set; }
```

<a id="autodeleteinterval"></a>

## AutoDeleteInterval

- Name: `AutoDeleteInterval`
- Modifiers: `nullable` `get; set`
- Returns: `TimeSpan?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets the interval before auto-delete runs.

```csharp
public TimeSpan? AutoDeleteInterval { get; set; }
```

<a id="autodeletetrigger"></a>

## AutoDeleteTrigger

- Name: `AutoDeleteTrigger`
- Modifiers: `nullable` `get; set`
- Returns: [AzureSandboxAutoDeleteTrigger?](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxautodeletetrigger.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets the event that starts the auto-delete interval.

```csharp
public AzureSandboxAutoDeleteTrigger? AutoDeleteTrigger { get; set; }
```

<a id="autosuspendenabled"></a>

## AutoSuspendEnabled

- Name: `AutoSuspendEnabled`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets a value indicating whether auto-suspend is enabled.

```csharp
public bool? AutoSuspendEnabled { get; set; }
```

<a id="autosuspendinterval"></a>

## AutoSuspendInterval

- Name: `AutoSuspendInterval`
- Modifiers: `nullable` `get; set`
- Returns: `TimeSpan?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets the idle interval before auto-suspend runs.

```csharp
public TimeSpan? AutoSuspendInterval { get; set; }
```

<a id="autosuspendmode"></a>

## AutoSuspendMode

- Name: `AutoSuspendMode`
- Modifiers: `nullable` `get; set`
- Returns: [AzureSandboxAutoSuspendMode?](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxautosuspendmode.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets the sandbox suspend mode.

```csharp
public AzureSandboxAutoSuspendMode? AutoSuspendMode { get; set; }
```

<a id="endpoints"></a>

## Endpoints

- Name: `Endpoints`
- Modifiers: `nullable` `get; set`
- Returns: `AzureSandboxEndpointOptions[]?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets endpoint-specific sandbox option overrides.

```csharp
public AzureSandboxEndpointOptions[]? Endpoints { get; set; }
```

<a id="tier"></a>

## Tier

- Name: `Tier`
- Modifiers: `get; set`
- Returns: [AzureSandboxTier](/reference/api/csharp/aspire.hosting.azure.sandboxes/azuresandboxtier.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.Sandboxes/AzureSandboxContainerOptionsAnnotation.cs)

Gets or sets the resource tier.

```csharp
public AzureSandboxTier Tier { get; set; }
```
