{
  "slug": "azd-passes-environment-variables-to-framework-build-subprocesses-13ed65d08755",
  "title": "azd passes environment variables to framework build subprocesses",
  "tools": [
    "azd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-28T01:10:21.000Z",
  "announced_at": "2026-02-28T01:10:21.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For a non-Docker Node.js, .NET, Java, Python, or SWA service build that needs `azd` environment variables, set the values in `.azure/<env>/.env`; `azd` passes them to framework build subprocesses. Run the applicable `azd` build or deployment workflow for the service.",
    "examples": [
      "azd env set <KEY> <VALUE> --environment <env>",
      "azd up"
    ],
    "gotchas": [
      "Version: 1.23.7",
      "<KEY> (required): Environment variable name to set.",
      "<VALUE> (required): Value to store for the variable.",
      "--environment <env>: Selects the named environment whose `.env` file is updated.",
      "Applies to non-Docker framework service build subprocesses.",
      "The change depends on #6894 (pnpm/yarn support)."
    ]
  },
  "why_it_matters": "Build a Node.js, .NET, Java, Python, or SWA service that needs azd environment variables during its build.",
  "before": "Previously only Docker builds and hooks received these variables.",
  "sources": [
    "https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.23.7",
    "https://github.com/Azure/azure-dev/pull/6905",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/manage-environment-variables"
  ],
  "rank": 0.93039,
  "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-53c3c74bdd98ac82-7:gate",
    "evidence_hash": "156d9ff89fd6cc310d33d1627808988d6205a9cf4d0236c0d047006df1cf569b"
  },
  "review": {
    "draft_hash": "449351596660ea325bf0d94d5af7e0f078aea05bf272f004f5ad70bcc2ed9760",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.65 (>= 0.6 needed)."
  }
}
