Azure Container Apps Sandboxes
Create the sandbox group and the service principal that let Sandcovery run Azure Container Apps Sandboxes in your own Azure subscription.
Sandcovery runs each sandbox in a sandbox group in your Azure subscription, through a service principal whose only role is Container Apps SandboxGroup Data Owner on that one sandbox group. Each sandbox starts from Microsoft's public ubuntu disk image. Sandcovery wrote this adapter from Microsoft's API spec and the Sandboxes docs and has not run it against Azure.
What runs
| Option | Support |
|---|---|
| Size | 1x2, 2x4, 4x8, 8x16, and 16x32 |
| Egress | allow_all or deny_all |
| Lifetime | Until the sandbox's TTL, which Azure's auto-delete keeps |
| Pause and resume | Yes |
| Snapshots | Yes |
| Idle timeout | Yes, as Azure's auto-suspend |
| Region | The region of your sandbox group |
Custom images, disk sizes, egress allowlists, and GPUs are not available on this provider. Each size's disk is the disk of its Azure tier, from 20 GiB at 1x2 to 320 GiB at 16x32.
Create the sandbox group
Install the aca CLI, sign in with az login, and create a resource group and a sandbox group in a region that runs Sandboxes, such as eastus2:
az group create --name <resource group> --location <region>
aca sandboxgroup create -g <resource group> --name <sandbox group> \
--location <region> -s <subscription ID>Create the service principal
Create a service principal whose only role is Container Apps SandboxGroup Data Owner, scoped to that sandbox group:
az ad sp create-for-rbac --name sandcovery \
--role "Container Apps SandboxGroup Data Owner" \
--scopes "/subscriptions/<subscription ID>/resourceGroups/<resource group>/providers/Microsoft.App/sandboxGroups/<sandbox group>"The command prints the service principal's appId, password, and tenant. Role assignments can take up to a minute to apply.
Add the credential
In Provider Credentials in the dashboard, add these seven fields for Azure Container Apps Sandboxes:
- Directory (tenant) ID:
tenant - Application (client) ID:
appId - Client secret:
password - Subscription ID: your subscription ID
- Resource group: the resource group name
- Sandbox group: the sandbox group name
- Region: the sandbox group's region, such as
eastus2