Skip to main content
Guide

Sandbox groups

A sandbox group is the regional, top-level resource that holds sandboxes and the configuration they share — VNet, identity, disk images, volumes, secrets, connectors. Create one, grant data-plane access, then run sandboxes inside it.

Create a group

A group is the security and configuration boundary for the sandboxes inside it. Pick a subscription, resource group, name, and region.

  1. Open sandboxes.azure.com/sandbox-groups and select Create.
  2. Choose a subscription and resource group.
  3. Enter a unique name (3–64 chars, lowercase, hyphens).
  4. Pick a region that supports sandbox groups.
  5. (Optional) configure networking, identity, and labels.
  6. Select Create. The group transitions from CreatingSucceeded.
aca sandboxgroup create --name my-group --location westus2 --set-config

List and get groups

The standard create / list / get triad.

The list at sandboxes.azure.com/sandbox-groups shows every group across your selected subscriptions, with name, region, state, and sandbox count. Filter by subscription, resource group, or state. Select a row to open the group overview.

aca sandboxgroup list
aca sandboxgroup get --name my-group

Grant data-plane access

The control plane creates the group. The data planeaca sandbox …, SandboxGroupClient — needs the Container Apps SandboxGroup Data Owner role assigned at the group scope. Role propagation takes ~30–60s; both the CLI and SDK auto-retry 403s for ~100s so the first data call still succeeds.

  1. Open the group, then Access control (IAM)Add role assignment.
  2. Pick Container Apps SandboxGroup Data Owner.
  3. Assign it to the user, group, or service principal that will call the data plane.
PRINCIPAL_ID=$(az ad signed-in-user show --query id -o tsv)

aca sandboxgroup role create \
--group my-group \
--role "Container Apps SandboxGroup Data Owner" \
--principal-id "$PRINCIPAL_ID"

Delete a group

Irreversible

Deleting a group removes all sandboxes, disk images, snapshots, volumes, secrets, identity assignments, and connector attachments inside it. Export snapshots or volumes first.

Open the group, then select Delete in the overview header and confirm.

aca sandboxgroup delete --name my-group --yes

Lifecycle states

StateDescription
CreatingResources are being provisioned
SucceededThe group is ready for use
UpdatingConfiguration changes are being applied
FailedProvisioning or update failed; check the Azure activity log
DeletingTeardown in progress