sincecutoff.com
← all changes

az stack create/validate/delete behavior for resources without delete support

Introduced 2026-03-03 · score 0.93

HOW TO USE IT

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`.

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>

WHY THIS HELPS

Create, validate, or delete a deployment stack that manages resources without delete support.

REQUIREMENTS AND LIMITATIONS

  • 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.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card