Skip to content
Proud to collaborate with Microsoft for Startups

runner.acr-registry-mirror-ensure ​

Ensure an ACR cache-rule mirror exists for an upstream registry

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-runners-azure
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidYes—Runner group the mirror belongs to.
organization_uuiduuidNo—Organization UUID; resolved from the group when omitted.
workflow_run_idstringNo—DAG step parent run ID (stamped by engine)
workflow_run_uuidstringNo—Engine-stamped correlation/run id (ADR-015)

Output Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidNo—Runner group echoed from input.
organization_uuiduuidNo—Organization UUID resolved for the group.
registry_namestringNo—Target Azure Container Registry.
resource_groupstringNo—Resource group holding the registry.
upstream_urlstringNo—Upstream registry the mirror fronts.
mirror_uuiduuidNo—AcrRegistryMirror row this run operates on.
mirror_statusstringNo—Terminal mirror status.
readybooleanNo—True when the mirror is usable by launches.
completed_atstringNo—ISO timestamp when the operation finalised.
validatejsonNo—Output of the validate DAG step.
secretjsonNo—Output of the secret DAG step.
grant_iamjsonNo—Output of the grant_iam DAG step.
repositoryjsonNo—Output of the repository DAG step.
verifyjsonNo—Output of the verify DAG step.
finalizejsonNo—Output of the finalize DAG step.
workflow_run_idstringNo——
failure_typestringNo——
failure_reasonstringNo——
failed_stepstringNo——
failed_layerjsonNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——

DAG Layers ​

#LayerStepsCompensation
1validaterunner.validate_acr_registry_mirror—
2secretrunner.ensure_acr_mirror_secretrunner.acr-registry-mirror-teardown
3grant_iamrunner.grant_acr_credential_set_secret_access—
4repositoryrunner.ensure_acr_mirror_repositoryrunner.acr-registry-mirror-teardown
5verifyrunner.verify_acr_registry_mirror—
6finalizerunner.finalize_acr_registry_mirror—

Execution Flow ​

Compensation ​

When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.

Sub-workflows ​

Sub-workflowStep name
runner.validate_acr_registry_mirrorvalidate
runner.ensure_acr_mirror_secretsecret
runner.grant_acr_credential_set_secret_accessgrant_iam
runner.ensure_acr_mirror_repositoryrepository
runner.verify_acr_registry_mirrorverify
runner.finalize_acr_registry_mirrorfinalize
runner.acr-registry-mirror-teardownteardown_partial

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "runner.acr-registry-mirror-ensure",
  "initial_data": {
    "runner_group_uuid": "value"
  }
}