Skip to content

[ARM] Deployment stacks What-If support#32854

Draft
kalbert312 wants to merge 33 commits intoAzure:devfrom
kalbert312:kylea/stacks-what-if
Draft

[ARM] Deployment stacks What-If support#32854
kalbert312 wants to merge 33 commits intoAzure:devfrom
kalbert312:kylea/stacks-what-if

Conversation

@kalbert312
Copy link
Member

@kalbert312 kalbert312 commented Feb 25, 2026

Related command
az stack-whatif

Description
Adds stack-whatif commands to Az CLI. This is a new resource type in ARM that stores previews of operations on deployment stacks. This may become a subcommand, or a flag to existing stack commands in the future, depending on customer feedback. The reason this is not added as a subcommand now is there is a subcommand hierarchy conflict:
az stack what-if group conflicts with az stack group where what-if is an action vs group which is a scope.
az stack group what-if would operate on a what-if entity, not a stack, which conflicts with the hierarchy.
Happy to take other suggestions if az stack-whatif is not desired.

Testing Guide
See test_resource_stacks.py for live test examples. Note at the time of writing, these commands currently only work in Canary regions, but full prod availability is expected by the end of the month.

History Notes

[ARM] az stack-whatif group/sub/mg: Add deployment stacks what-if commands.


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd
Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 25, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@kalbert312 kalbert312 force-pushed the kylea/stacks-what-if branch from 42c7914 to 5fd01a6 Compare March 2, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants