{
  "slug": "az-bicep-snapshot-and-run-subcommands-de08a40b9f9d",
  "title": "az bicep snapshot and run subcommands",
  "tools": [
    "az"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-07T00:00:00.000Z",
  "announced_at": "2026-07-07T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When working with Bicep snapshots or forwarding a command to the Bicep CLI, use `az bicep snapshot` or `az bicep run` with the documented arguments.",
    "examples": [
      "az bicep snapshot --file <bicepparam-file>",
      "az bicep snapshot --file <bicepparam-file> --mode Validate",
      "az bicep run --command \"<bicep-cli-command-and-arguments>\""
    ],
    "gotchas": [
      "Version: 2.88.0",
      "snapshot --file (-f) (required): Path to the .bicepparam file to snapshot.",
      "snapshot --mode: Snapshot mode: `Overwrite` (default) writes the snapshot; `Validate` compares the existing snapshot and fails if differences are detected. Allowed values are mutually exclusive.",
      "snapshot --deployment-name: Deployment context used to resolve `existing` references during snapshot capture.",
      "snapshot --location (-l): Location in the deployment context used to resolve `existing` references during snapshot capture.",
      "snapshot --management-group-id: Management group ID in the deployment context used to resolve `existing` references during snapshot capture.",
      "snapshot --resource-group (-g): Resource group name in the deployment context used to resolve `existing` references during snapshot capture.",
      "snapshot --subscription-id: Subscription ID in the deployment context used to resolve `existing` references; does not change Azure CLI authentication context.",
      "snapshot --tenant-id: Tenant ID in the deployment context used to resolve `existing` references; does not change Azure CLI authentication context.",
      "run --command (-c) (required): Bicep CLI command and arguments as one quoted string. For a forwarded command starting with `--`, use `--command=<value>`.",
      "Prerequisite: `az bicep snapshot` requires Bicep CLI v0.41.2 or later.",
      "Docs conflict: The Azure CLI reference documents `az bicep snapshot`; the Bicep CLI commands page says `az bicep snapshot` does not exist and instructs running `bicep snapshot` directly. The Azure CLI reference matches the card's interface: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-cli"
    ]
  },
  "why_it_matters": "Use the Azure CLI Bicep surface when working with Bicep snapshots or runs.",
  "sources": [
    "https://learn.microsoft.com/en-us/cli/azure/release-notes-azure-cli#july-07-2026",
    "https://learn.microsoft.com/en-us/cli/azure/bicep?view=azure-cli-latest"
  ],
  "rank": 0.90037,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3-rejudge+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-b484c3ae2a184c0f-2:rescue",
    "evidence_hash": "becd014dedfa9691784256659e247c33d001db91b8716a65e7c2240a13e23ec3"
  },
  "review": {
    "draft_hash": "273b6c85e8a6912f03bae15b813608f2ce58e7a12ec7f4039d21b7b8388ba6e4",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:rescue",
    "reason": "Rescue path: first rejected only because the extracted card lacked usage; judged again on the enriched card, 2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.60 (>= 0.6 needed)."
  }
}
