az deployment validate returns exit code 0 when an error is encountered in json #12031
Labels
ARM
az resource/group/lock/tag/deployment/policy/managementapp/account management-group
Milestone
This is autogenerated. Please review and update as needed.
Describe the bug
When you run az deployment validate command against your ARM templates locally or on a CI/CD returns exit code 0 even though you encountered an error and your json error response is not null.
Command Name
az deployment validate
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az deployment validate --location {} --subscription {} --template-file {} --parameters {} --parameters {} --parameters {}
Expected Behavior
Expected to have other than 0 exit code for non-valid templates so those can be captured locally or in CI/CD pipelines.
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: