An open API service indexing awesome lists of open source software.

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

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

![Exit Code: 0](images/what-if-result.png)

### 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)