{
  "slug": "az-stack-create-validate-delete-behavior-for-resources-without-delete-support-876ff16471f8",
  "title": "az stack create/validate/delete behavior for resources without delete support",
  "tools": [
    "az"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-03T00:00:00.000Z",
  "announced_at": "2026-03-03T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating, validating, or deleting a deployment stack, set `--resources-without-delete-support` to choose how to handle resources that lack delete support when they are no longer managed by the stack. The documented values are `detach` and `fail`.",
    "examples": [
      "az stack group create --name <stack-name> --resource-group <resource-group> --template-file <template-file> --action-on-unmanage <deleteAll|deleteResources|detachAll> --deny-settings-mode <denyDelete|denyWriteAndDelete|none> --resources-without-delete-support <detach|fail>",
      "az stack sub validate --name <stack-name> --template-file <template-file> --location <location> --action-on-unmanage <deleteAll|deleteResources|detachAll> --deny-settings-mode <denyDelete|denyWriteAndDelete|none> --resources-without-delete-support <detach|fail>",
      "az stack mg delete --name <stack-name> --management-group-id <management-group-id> --action-on-unmanage <deleteAll|deleteResources|detachAll> --resources-without-delete-support <detach|fail>"
    ],
    "gotchas": [
      "Version: 2.84.0",
      "--resources-without-delete-support, --rwd: Selects what happens to resources without delete support when no longer managed by the stack. Allowed values: `detach`, `fail`.",
      "--action-on-unmanage, --aou (required): Sets what happens to resources no longer managed after the stack is updated or deleted. Values: `deleteAll`, `deleteResources`, `detachAll`.",
      "--deny-settings-mode, --dm (required): Sets denied operations on managed resources. Values: `denyDelete`, `denyWriteAndDelete`, `none`.",
      "--name, -n (required): Deployment stack name.",
      "--resource-group, -g (required): Resource group containing the stack; required for group-scope create/validate.",
      "--template-file, -f: Path to a template or Bicep file.",
      "--location, -l (required): Location to store the deployment stack; required for subscription-scope validate.",
      "--management-group-id, -m (required): Management group ID; required for management-group-scope delete."
    ]
  },
  "why_it_matters": "Create, validate, or delete a deployment stack that manages resources without delete support.",
  "sources": [
    "https://learn.microsoft.com/en-us/cli/azure/release-notes-azure-cli#march-03-2026",
    "https://learn.microsoft.com/en-us/cli/azure/stack/group?view=azure-cli-latest",
    "https://learn.microsoft.com/en-us/cli/azure/stack/sub?view=azure-cli-latest",
    "https://learn.microsoft.com/en-us/cli/azure/stack/mg?view=azure-cli-latest"
  ],
  "rank": 0.93021,
  "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": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-34e87710e9c41fce-8:gate",
    "evidence_hash": "aa9ef5a274e1670360c4125cd0e1deafa703cc2e1b13838c2ad971b9c8816495"
  },
  "review": {
    "draft_hash": "058461e1a10af6aac2a6c9f9833899ee3367b6c646d7e00654dfa99f550dfb02",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-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.63 (>= 0.6 needed)."
  }
}
