https://github.com/julie-ng/arm-what-if-exit-code-test
https://github.com/julie-ng/arm-what-if-exit-code-test
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/julie-ng/arm-what-if-exit-code-test
- Owner: julie-ng
- License: mit
- Created: 2021-01-18T11:08:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-18T11:28:42.000Z (over 4 years ago)
- Last Synced: 2025-02-01T02:42:00.111Z (8 months ago)
- Size: 52.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ARM `what-if` Test
### Goal
Does `what-if` use an exit code so we can automate checking for configuraiton drift without analyzing output?
### Result - Nope
- To detect programmatically detect configuration change, you would need to process result output 😕
- Green means exit code 0. I want a non-zero exit code like Terraform's `-detailed-exitcode` flag
### References
- [Azure Docs: ARM template deployment what-if operation](https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-deploy-what-if?tabs=azure-cli)
- [Azure CLI Reference: az deployment sub what-if](https://docs.microsoft.com/en-us/cli/azure/deployment/sub?view=azure-cli-latest#az_deployment_sub_what_if)