-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.10.8 - Subnet IDs are case-sensitive in TF, not in Azure API #535
Comments
Hey @samirageb Thanks for opening this issue :) The issue you're seeing here is that the Subnet URI's are Case Sensitive in Terraform, but are case-insensitive in Azure (however, unfortunately Azure's inconsistent in that not all API's are case-insensitive) - we can update Terraform to handle be case-insensitive for this field, however in the interim you can update the URI from
FYI I'd recommend using the Subnet ID from the resource ( Thanks! |
@tombuildsstuff Thanks for the clarification. There's no way I would have thought this was case related. I totally understand referring to the subnetID from the resource, but in my case TF network configs are completely isolated from VM configs for security purposes, and differing lifecycles. Looking forward to the data sources though, as that would be a great workaround. I would ask if there's anywhere that I can reference which Azure APIs are case-sensitive? Also, it seems like adding the per-api logic into the provider around case insensitivity would be a good preventative step for users as well. |
@tombuildsstuff Updated the title to reflect reality. Once my q's are addressed (one way or another), I'll close this issue. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
When using an interpolated/constructed subnet_id reference, azure network interfaces will always report a change is required, even when there isn't one. The template provided is a working basic repro of this occurring.
Terraform Version
0.10.8
terraform-provider-azurerm_v0.3.2_x4
Affected Resource(s)
Unknown if this affects other resources that reference subnet_ids
Terraform Configuration Files
Debug Output
The following output is from a clean apply, followed by a plan.
https://gist.github.com/samirageb/47924c72ba2c6165674f1122c5d1b507
Panic Output
N/A
Expected Behavior
Output would read:
No changes. Infrastructure is up-to-date.
Actual Behavior
Output actually reads:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
Important Factoids
Nothing custom.
References
None that I found
The text was updated successfully, but these errors were encountered: