azurerm_application_gateway
- removing crash points
#848
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Azure API returns the latest version of a resource at the last time it was changed, which for an existing resource could be from 2 years ago not conforming to the latest schema; such that some fields which are Required in the API are missing from the API response.
As such - this PR goes through and removes all potential crash points that I could see in the App Gateway resource's flatten functions - which should fix #816 and a few other issues
Unfortunately this is painful to test, since each test takes 30m - so this is a WIP until I can confirm everything works as expected. This is kind of a rework of #632 but without all the additional tests (which we can't add due to an API bug)
Fixes #816