Prerequisites
- Azure subscription with permissions to create resources
- Superblocks Agent Key (generate one)
- Install Azure CLI (See quickstart for example usage)
Deploy resources
Create Subnet
If your agent needs to talk to internal APIs and databases inside a specific Azure VNet, create a new subnet inside that VNet. The subnet should be dedicated to the Azure Container Apps Environment with no other resources.- Azure Portal
- Azure CLI
Navigate to your VNet then choose Settings -> Subnets -> + Subnet. Configure the subnet settings, including setting Subnet Delegation to “Microsoft.App/environments”.
Create Container Apps Environment
- Azure Portal
- Azure CLI
- Navigate to Container Apps -> + Create -> Container App
- Under Container Apps environment, click the link to Create new environment
- Configure Networking to enable or disable Public Network Access and specify the Virtual network using the VNet / subnet created in the previous section.
Create Container App
- Azure Portal
- Azure CLI
- YAML Template
- Go to Container Apps → + Create
- Under Basics tab, specify the subscription, resource group, app name, and container apps environment (see Create container apps environment)
-
Under Container tab:
Container details
These are the required container image settings if using the Superblocks hosted image. Update these accordingly if you host your own custom image.
- Image source: Select Docker Hub or other registries
- Image type: Select Public
- Registry login server:
ghcr.io - Image:
superblocksteam/agent:latest
- Set 2 CPU, 4.0 GiB memory
- Add
SUPERBLOCKS_AGENT_DATA_DOMAIN = app.superblocks.com - Add
SUPERBLOCKS_ORCHESTRATOR_AGENT_HOST_URL = https:<container_app_name>.<defaultDomain> - Add
SUPERBLOCKS_ORCHESTRATOR_AGENT_TAGS = profile:*
-
Under Ingress tab:
- Enable ingress, configure Ingress traffic settings, and set Target port to 8080
- Click Create
- Under Application -> Scale, set Min Replicas to 1. To adjust horizontal scaling, optionally configure Max replicas.
- Under Security -> Secrets, create a secret to store the Superblocks agent key, using either a Container Apps Secret or Key Vault reference.
- Under Application -> Containers, select the Environment variables tab and set both
SUPERBLOCKS_AGENT_KEYandSUPERBLOCKS_ORCHESTRATOR_SUPERBLOCKS_KEYto the previously created secret reference. Click Save as a new revision.
Verify agent is running
Check the application status:Billable services
The Superblocks data plane may make use of the following Azure services. Be aware of the pricing associated with these.- Azure Container Apps - Serverless container platform with consumption-based pricing (includes free monthly grants of 180,000 vCPU-seconds, 360,000 GiB-seconds, and 2M requests)
- Azure Monitor & Log Analytics - Logging and monitoring solution for diagnostics (optional)
- Azure Key Vault - Secure secret storage for credentials and configuration (optional)
- Virtual Network - Network infrastructure for private deployments (optional)

