# Azure Deployment Stacks What-If reaches GA

> Stack updates can now produce a persistent preview showing create, modify, delete, and detach actions at resource, subscription, or management-group scope.

Canonical URL: https://www.devobs.io/news/news-azure-deployment-stacks-what-if-ga/
By: Samira Haddad
Published: 2026-09-06T11:58:54.639Z
Updated: 2026-09-06T11:58:54.639Z
Event date: 2026-08-18
Section: Developer tools

What-If for Azure Deployment Stacks became generally available in all regions on August 18. The [Azure Governance post](https://techcommunity.microsoft.com/blog/azuregovernanceandmanagementblog/now-generally-available-what-if-for-azure-deployment-stacks/4547614) says it previews changes to the stack and managed resources, including create, modify, delete, and detach. It works at resource-group, subscription, and management-group scope through CLI, PowerShell, and SDKs.

## The preview is a durable resource

Standard deployment what-if returns an operation result. Stack What-If creates a named `Microsoft.Resources/deploymentStacksWhatIfResults` resource with a retention interval, so a pipeline can link reviewers to the same result it evaluated. Microsoft also uses the deployed stack's baseline to filter noisy property differences.

Delete and detach deserve special attention because `actionOnUnmanage` can turn removing template declarations into destructive resource changes. A preview exposes that intent before deployment, but it still evaluates against a point-in-time state.

## Make the artifact part of approval

On each infrastructure pull request, create a uniquely named result against the target stack and publish its resource ID with the code diff. Fail the pipeline on unsupported evaluation or unexpected delete and detach actions. Choose retention long enough for review and clean up results automatically.

Require a fresh evaluation when code or target state changes after approval. Limit permissions so contributors who propose a template cannot rewrite the approval evidence or deploy without the designated gate. Review deny-setting changes separately because they affect future control over managed resources.

Start with an existing nonproduction stack and compare predicted actions to an actual deployment. The feature improves visibility; it does not guarantee a provider will behave exactly as predicted under concurrent drift. Keep deployment activity logs and a recovery plan for stateful resources.

## Source references

- <https://techcommunity.microsoft.com/blog/azuregovernanceandmanagementblog/now-generally-available-what-if-for-azure-deployment-stacks/4547614>
