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
Refreshing Terraform state in-memory prior to plan...The refreshed state will be used to calculate this plan, but will not bepersisted to local or remote state storage.azurerm_resource_group.test: Refreshing state... (ID: /subscriptions/9bc818d2-70ea-4c3a-9677-0d312a2e5b65/resourceGroups/acctestrg)azurerm_image.test: Refreshing state... (ID: /subscriptions/9bc818d2-70ea-4c3a-9677-...iders/Microsoft.Compute/images/acctest)The Terraform execution plan has been generated and is shown below.Resources are shown in alphabetical order for quick scanning. Green resourceswill be created (or destroyed and then created if an existing resourceexists), yellow resources are being changed in-place, and red resourceswill be destroyed. Cyan entries are data sources to be read.Note: You didn't specify an "-out" parameter to save this plan, so when"apply"is called, Terraform can't guarantee this is what will execute.-/+ azurerm_image.test (new resource required)location: "eastus2" => "eastus2"name: "acctest" => "acctest"os_disk.#: "1" => "1"os_disk.2453480131.os_state: "Generalized" => ""os_disk.2453480131.os_type: "Linux" => ""os_disk.3156744706.blob_uri: "" => "https://pcsnonprodimages.blob.core.windows.net/system/Microsoft.Compute/Images/images/pcsnonprod-ubuntuv01-osDisk.6a65bac6-bc69-4785-948b-a419820c76f0.vhd" (forces new resource)os_disk.3156744706.managed_disk_id: "" => "<computed>"os_disk.3156744706.os_state: "" => "Generalized"os_disk.3156744706.os_type: "" => "Linux"os_disk.3156744706.size_gb: "" => "<computed>"resource_group_name: "acctestrg" => "acctestrg"tags.%: "0" => "<computed>"Plan: 1 to add, 0 to change, 1 to destroy.
This issue has been automatically migrated to hashicorp/terraform-provider-azurerm#234 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to this issue and let us know.
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 7, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.10.0
Terraform Configuration Files
Debug Output
terraform apply
terraform plan
TF state file
Panic Output
Expected Behavior
Terraform plan should not recreate the resource
Actual Behavior
with every run image is deleted and recreated. refer "Debug Output" section
Steps to Reproduce
terraform apply
(to create iy for the first time)terraform plan
orterraform apply
-> recreates the image againThis in turn recreates the VM as Image_ID is referenced
storage_image_reference
The text was updated successfully, but these errors were encountered: