Azure CLI has no equivalent to the -WhatIf flag in the Azure PowerShell cmdlets to print what would happen if a template were to be deployed.
This is a feature often requested from users of Terraform, where they want to see what some local changes to the template would do if deployed.
We should add a --dry-run flag to az group deployment create.
azure-cli (2.0.26) via MSI installer
Have you tried az group deployment validate? Does that differ from what you are expecting?
az group deployment validate tells you if the deployment is syntactically correct, but not what the execution of the deployment it would do. This is the often asked for feature that terraform has (terraform plan).
This will come from ARM service end
Is this functionality implemented on the server side already, or how does Powershell do it?
The -WhatIf powershell cmdlet is not actually doing what was described in the issue. It doesn't preview what the deployment is going to do. -WhatIf is a standard flag for many powershell cmdlets.
Having said that, the feature you are describing is being worked on as we speak :) We are hoping to have a public preview available of ARM template what-if for both powershell and CLI by Ignite of this year. Will update this issue when that is done.
The -WhatIf powershell cmdlet is not actually doing what was described in the issue. It doesn't preview what the deployment is going to do. -WhatIf is a standard flag for many powershell cmdlets.
Having said that, the feature you are describing is being worked on as we speak :) We are hoping to have a public preview available of ARM template what-if for both powershell and CLI by Ignite of this year. Will update this issue when that is done.
Ignite was this week - any news @alex-frankel ?
We announced a private preview that will be starting this week. PowerShell will be first, closely followed by Az CLI.
More info here: https://aka.ms/MicrosoftIgnite2019/BRK3233
Sign ups for private preview are here: https://aka.ms/ARMTemplatePreviews
@alex-frankel - great ! I'll get my customer to sign up. Thanks.
Most helpful comment
We announced a private preview that will be starting this week. PowerShell will be first, closely followed by Az CLI.
More info here: https://aka.ms/MicrosoftIgnite2019/BRK3233
Sign ups for private preview are here: https://aka.ms/ARMTemplatePreviews