{
  "slug": "azd-auto-detects-bicep-or-terraform-from-infra-files-0138d1ccfdec",
  "title": "azd auto-detects Bicep or Terraform from infra files",
  "tools": [
    "azd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-15T05:22:33.000Z",
  "announced_at": "2026-01-15T05:22:33.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When `infra.provider` is unset, run `azd provision` to provision from the project’s infrastructure files; for automatic Bicep or Terraform detection, use azd v1.23.0 or later. If both file types are present, set `infra.provider` explicitly.",
    "examples": [
      "azd provision",
      "infra:\n  provider: <bicep|terraform>"
    ],
    "gotchas": [
      "Version: 1.23.0",
      "infra.provider: Infrastructure provisioning provider; documented values include `bicep` and `terraform`.",
      "Prerequisite: Use Azure Developer CLI v1.23.0 or later for the release-note-described auto-detection.",
      "Prerequisite: `azure.yaml` belongs at the project root and configures project infrastructure; the `infra` directory contains infrastructure files.",
      "Detection scans the infra directory and ignores subdirectories.",
      "If both Bicep and Terraform file types are present, explicit configuration is required.",
      "Docs conflict: The current schema docs state that the default provider is Bicep; they do not document the v1.23.0 file-based auto-detection behavior. The v1.23.0 source is the version-specific evidence for that behavior."
    ]
  },
  "why_it_matters": "Provision a project with Bicep or Terraform files when `infra.provider` is unset in `azure.yaml`.",
  "sources": [
    "https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.23.0",
    "https://github.com/Azure/azure-dev/pull/6461",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/azd-commands",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/azd-schema",
    "https://github.com/Azure/azure-dev/blob/azure-dev-cli_1.23.0/cli/azd/pkg/project/importer.go"
  ],
  "rank": 0.9504,
  "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-087fa7aa08883283-5:gate",
    "evidence_hash": "bd27cc86027eb8b9683dcf12895d8235b391a5acaa0bed789db58280bf0a5a00"
  },
  "review": {
    "draft_hash": "6acb7160f79ed21d71fdbd11dc341401baff900bc5c611996291fcd0afcb9520",
    "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.95 >= 0.9; 2 needed) and Jev gave 0.65 (>= 0.6 needed)."
  }
}
