EnableAcceleratedNetworking is not always returned by the Azure virtual-machine-scale-set API #481
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.
Using Terraform 0.10.8 and AzureRM 0.3.2, I was getting a crash when running terraform apply.
Unfortunately I can't attach the crash.log as my client is concerned about privacy, but I can send it privately if someone wants it. I've included some relevant sections in this PR which I hope will be enough to explain the problem.
I've taken a look at where the AzureRM provider is crashing in the crash.log:
It looks like the provider fails in line 903 of resource_arm_virtual_machine_scale_set.go, where the code is trying to access a field called
accelerated_networking
, however... it looks like this doesn't always get returned by the Azure API (also taken from the crash.log just above where the crash happens)...This change makes the response optional (or at least that is the intention... this is my first contribution to a Go project - I've run tests and the seem to pass, and it solves the problem I was having, but I'd very much appreciate any feedback).