You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform will set ensure the fields set on any resources match the values set in the state - such that any changes not specified in Terraform (e.g. extra tags) will be removed in favour of the expected configuration.
There's currently a bug in the AzureRM Provider (due to the nature of the Azure API's being Upserts, rather than separate Create/Update methods as in other API's) where resources don't have to exist in the State prior to being used by Terraform (such that Terraform will silently update them). We've got a fix for this coming in #1746 - where Terraform will now require that resources which already exist are imported into the state (via terraform import).
Would you be able to take a look and see if importing the resource in the state works for you? Since there's a fix for this coming in #1746 I'm going to close this issue in favour of that one for the moment.
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 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 6, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform Version
Terraform v0.11.8
Affected Resource(s)
That I know of
Terraform Configuration Files
N/A
Debug Output
N/A (Sorry, it's impossible for me to get as I'm not going to duplicate the apply.)
Panic Output
N/A - Didn't panic
Expected Behavior
Expecting terraform to error because the infrastructure already exists, and to not move forward until it's imported.
Actual Behavior
It automatically imported those resources, and applied changes to them (in the form of tags as far as I can tell).
Steps to Reproduce
terraform show
Important Factoids
References
The text was updated successfully, but these errors were encountered: