Skip to main content
Guide

Sandbox groups

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

Create a group

A sandbox group is the security and configuration boundary for the sandboxes inside it. Choose 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 (2–63 characters, lowercase letters, numbers, and hyphens; it must start with a letter and end with a letter or number).
  4. Pick a region that supports sandbox groups.
  5. (Optional) configure networking, identity, and labels.
  6. Select Create. The group transitions from Creating to Succeeded.
aca sandboxgroup create --name my-group --location westus2 --set-config

List and get groups

Use create, list, and get to manage sandbox groups.

The list at sandboxes.azure.com/sandbox-groups shows every sandbox group across your selected subscriptions, including name, location, subscription, resource group, and row actions. Search by name, or filter by subscription, resource group, or region. 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 sandbox group. The data planeaca sandbox …, SandboxGroupClient — needs the Container Apps SandboxGroup Data Owner role assigned at the group scope. RBAC changes can take time to propagate, so retry the first data call if access was just granted.

  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 sandbox group removes all sandboxes, disk images, snapshots, volumes, secrets, identity assignments, and connector attachments inside it. Export snapshots or volumes first.

Open the sandbox group, 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