Aller au contenu
EN English versionDemander une démo

Run agent stages as Azure Container Apps jobs

For the person who operates the platform. Procedure connector.runtime.aca, version 1, reviewed 2026-10-16 against the vendor’s own pages. It applies to the connector type runtime/aca.

It ships with the platform. In the console it opens with How to set this up, beside the form that adds the connector and on the connector’s settings.

Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.

  • An Azure subscription, a resource group and a Container Apps environment, and a registry that holds the runner image.
  • A user-assigned managed identity with pull rights on the registry: the job pulls its image with it, so no cloud credential is held by the runner.
  • See the deployment guide and the github-aca template.
  1. Create an app registration (service principal) for the platform and a client secret; note the tenant id, client id and the secret’s Value.
  2. Give it a role that can create and start jobs in the resource group (for example a custom role on Microsoft.App/jobs/*; check Azure’s built-in roles for the narrowest that fits).
  3. Note the environment’s resource id, the managed identity’s resource id and the registry host.
  4. Optional: a Log Analytics workspace, so the platform can read the job’s logs. Without it, logs say where to look instead of showing nothing.

The service principal creates and starts jobs; the managed identity only pulls images. The run’s token is a job secret referenced by secretRef, never an environment variable in clear.

Set runner.executor: aca in the chart and declare the connector: subscription_id, resource_group, environment_id (required), location (default westeurope), tenant_id, client_id, client_secret (password field; or a ready token instead of the three identity fields), identity_id, registry_server and log_analytics_workspace_id.

The job runs outside the cluster and calls the platform back, so it needs an address it can reach: the in-cluster Service is not one. Give runs a hostname of their own, a run door: list it in tranibor-api.runDoor.hostnames (the chart then routes it to the run’s API and to nothing else), serve it over TLS, allow only the addresses your Container Apps environment leaves from where your ingress can, and set global.internalApiUrl to https://<that hostname>. The deployment guide has the steps under “The run’s API and the run door”.

Start a run on a test project: the job appears in the resource group and its execution finishes.

  • AuthorizationFailed: the service principal’s role does not cover the resource group.
  • The job cannot pull its image: the managed identity lacks pull rights on the registry.
  • No logs: no Log Analytics workspace is configured.
  • A timeout: the egress allowlist must open management.azure.com and login.microsoftonline.com.
  • The job starts and ends within seconds, “input not found”: its first call back did not get through. A connection error means global.internalApiUrl is not reachable from the Container Apps environment. A 404 means the API refused the hostname the job called: it is a public hostname of the API and not a run door, while tranibor-api.internalApiGuard is enforce.
Field What to put in it
client_id the service principal’s application id
client_secret the service principal’s secret, typed once
environment_id the Container Apps environment’s resource id
identity_id the managed identity the job uses to pull its image
log_analytics_workspace_id where the job’s logs are read
registry_server the container registry’s host
resource_group the resource group of the jobs
subscription_id the Azure subscription
tenant_id the Entra tenant
token an Azure Resource Manager access token you already hold, instead of tenant_id, client_id and client_secret

Hosts the platform must be allowed to reach:

  • management.azure.com
  • login.microsoftonline.com
  • api.loganalytics.io