{
  "slug": "azd-adds-per-phase-concurrency-limits-fb38fca06749",
  "title": "azd adds per-phase concurrency limits",
  "tools": [
    "azd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-16T23:33:03.000Z",
  "announced_at": "2026-09-16T23:33:03.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When tuning parallel work in an azd project, set the relevant concurrency environment variables for `azd up`, `azd deploy`, or `azd provision`. Configure `AZD_CONCURRENCY_MAX` for the global ceiling; values are clamped to 64, and standalone `azd package` remains sequential.",
    "examples": [
      "AZD_PACKAGE_CONCURRENCY=<positive-integer> AZD_PROVISION_CONCURRENCY=<positive-integer> AZD_DEPLOY_CONCURRENCY=<positive-integer> AZD_CONCURRENCY_MAX=<positive-integer> azd up",
      "AZD_PACKAGE_CONCURRENCY=<positive-integer> AZD_DEPLOY_CONCURRENCY=<positive-integer> AZD_CONCURRENCY_MAX=<positive-integer> azd deploy",
      "AZD_PROVISION_CONCURRENCY=<positive-integer> AZD_CONCURRENCY_MAX=<positive-integer> azd provision"
    ],
    "gotchas": [
      "Version: 1.34.1",
      "AZD_CONCURRENCY_MAX: Hard global ceiling; for `azd up`, fallback order is `AZD_UP_CONCURRENCY`, then `AZD_DEPLOY_CONCURRENCY`, then scheduler default. For `azd deploy` and `azd provision`, fallback is the respective command concurrency variable, then scheduler default.",
      "AZD_PACKAGE_CONCURRENCY: Package phase limit. For `azd up`, fallback is `AZD_UP_CONCURRENCY`; for `azd deploy`, fallback is `AZD_DEPLOY_CONCURRENCY`.",
      "AZD_PROVISION_CONCURRENCY: Provision phase limit for `azd up`; fallback is `AZD_UP_CONCURRENCY`. It is also the provision phase limit and command-level fallback for `azd provision`.",
      "AZD_DEPLOY_CONCURRENCY: Shared publish/deploy phase limit. For `azd up`, it is also a global-ceiling fallback and precedes `AZD_UP_CONCURRENCY` for that phase. For `azd deploy`, it is also the global-ceiling and package-limit fallback.",
      "AZD_UP_CONCURRENCY: Fallback phase limit for package, provision, and publish/deploy under `azd up`; also a global-ceiling fallback after `AZD_CONCURRENCY_MAX`.",
      "configured concurrency values: Positive integers, clamped to 64. An explicitly set invalid or non-positive value disables that limit and blocks fallback; fallback occurs only when the higher-precedence variable is unset.",
      "Configured values are positive integers clamped to 64.",
      "An explicitly set invalid or non-positive value disables that limit and blocks fallback.",
      "Fallback occurs only when the higher-precedence variable is unset.",
      "Package and provision work in `azd up` can overlap while retaining independent limits.",
      "Publish and deploy share one budget because both are part of the deployment phase.",
      "Standalone `azd package` remains sequential."
    ]
  },
  "why_it_matters": "Tune parallel package, provision, publish, or deploy work when maintaining an azd project.",
  "before": "Before graph-driven `up`, `provision`, and `deploy` pipelines, these commands ran each service and each layer sequentially.",
  "sources": [
    "https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.34.1",
    "https://github.com/Azure/azure-dev/pull/9752",
    "https://github.com/Azure/azure-dev/blob/azure-dev-cli_1.34.1/cli/azd/docs/concurrency-model.md"
  ],
  "rank": 0.98048,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-ed20ba09823a43fa-0:gate",
    "evidence_hash": "db2a2921b3b34b6eb346aa5de5f39d1c43b6791562e746553636fa2a709b3921"
  },
  "review": {
    "draft_hash": "e46269db8f8032d0604d64a1f060b4f9a8f4509951690833bdec7c5af2f4e4c1",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
