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
This change is successfully applied to Azure, but does not appear to be recored properly in the state file.
Actual Behavior
This shows up as a change to be made in every following terraform plan
Steps to Reproduce
Set up a VM using the before layout.
Change the Terraform config to match the after.
Run a terraform apply and confirm you see the changes in the Azure portal
Run terraform plan and the changes should be listed as pending still.
Important Factoids
I tried just editing the state file to see if it was something that could be manually corrected. Maybe I missed a spot, but I could never get it to see the change as completed.
The text was updated successfully, but these errors were encountered:
I went through the state file and edited the order of the disks. Now I've found that if I run terraform plan -refresh=false Terraform does not think it needs to apply any changes to the disks on the virtual machine (which is what I would expect). If I run terraform plan and allow it to do the refresh it does think the disk changes need to be re-applied. This suggests to me that the out of order information is actually coming from Azure and not the local statefile.
This is a little odd because the lun layout and disk ordering in the Azure web UI is set properly.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
0.7.3 (waiting for 0.7.6 to come out due to [GH-9122]
Affected Resource(s)
azurerm_virtual_machine
Terraform Configuration Files
Before:
After:
Debug Output
Expected Behavior
This change is successfully applied to Azure, but does not appear to be recored properly in the state file.
Actual Behavior
This shows up as a change to be made in every following
terraform plan
Steps to Reproduce
terraform apply
and confirm you see the changes in the Azure portalterraform plan
and the changes should be listed as pending still.Important Factoids
I tried just editing the state file to see if it was something that could be manually corrected. Maybe I missed a spot, but I could never get it to see the change as completed.
The text was updated successfully, but these errors were encountered: