{
  "slug": "azd-env-new-and-azd-init-add-no-prompt-defaults-e8821f178fe4",
  "title": "azd env new and azd init add no-prompt defaults",
  "tools": [
    "azd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-07T01:49:19.000Z",
  "announced_at": "2026-03-07T01:49:19.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When setting up a repository, run `azd env new` or `azd init` with `--no-prompt`; azd generates the environment name from the working directory and, when exactly one subscription is available, selects it automatically. The release note says `--environment` is not required for this behavior.",
    "examples": [
      "azd env new --no-prompt",
      "azd init --no-prompt"
    ],
    "gotchas": [
      "Version: 1.23.8",
      "--no-prompt: Suppress prompts; the release note describes automatic environment naming and single-subscription selection in this mode.",
      "--environment: The release note says the hard requirement for this option is removed.",
      "Automatic subscription selection is specified only when one subscription is available.",
      "Docs conflict: Current Microsoft Learn reference documents `azd env new <environment>` with a required positional environment argument and describes `--no-prompt` as using existing values; this is newer-version documentation and differs from the 1.23.8 release note. https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/reference"
    ]
  },
  "why_it_matters": "Create or initialize an azd environment in `--no-prompt` mode when setting up a repository.",
  "sources": [
    "https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.23.8"
  ],
  "rank": 0.9204,
  "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-8c393f295490b67d-2:gate",
    "evidence_hash": "a220db45b347b17df8e90b3512ec080cfe61db0957d0968a37d5659b4f83e17e"
  },
  "review": {
    "draft_hash": "fc16f7cb420b4311355a52b891733942a0bbae929cd82bd6ab36935d34c2ebb3",
    "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.92 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
