{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6776","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6776/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6776/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6776/events","html_url":"https://github.com/hashicorp/terraform/issues/6776","id":155803196,"number":6776,"title":"new public_IP added:  azurerm_network_interface.api: diffs didn't match during apply.","user":{"login":"nicocesar","id":425081,"avatar_url":"https://avatars.githubusercontent.com/u/425081?v=3","gravatar_id":"","url":"https://api.github.com/users/nicocesar","html_url":"https://github.com/nicocesar","followers_url":"https://api.github.com/users/nicocesar/followers","following_url":"https://api.github.com/users/nicocesar/following{/other_user}","gists_url":"https://api.github.com/users/nicocesar/gists{/gist_id}","starred_url":"https://api.github.com/users/nicocesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicocesar/subscriptions","organizations_url":"https://api.github.com/users/nicocesar/orgs","repos_url":"https://api.github.com/users/nicocesar/repos","events_url":"https://api.github.com/users/nicocesar/events{/privacy}","received_events_url":"https://api.github.com/users/nicocesar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-19T18:25:45Z","updated_at":"2016-05-19T18:25:45Z","closed_at":null,"body":"I created a azurerm_network_interface.api without a azurerm_public_ip  ... then apply. \r\nthen changed my deffinition to add one: \r\n\r\n```\r\nresource \"azurerm_public_ip\" \"api\" {\r\n    name = \"api-public-ip\"\r\n    location = \"${var.location}\"\r\n    resource_group_name = \"${azurerm_resource_group.rg.name}\"\r\n    public_ip_address_allocation = \"static\"\r\n}\r\n\r\n\r\nresource \"azurerm_network_interface\" \"api\" {\r\n    name = \"api-nic\"\r\n    location = \"${var.location}\"\r\n    resource_group_name = \"${azurerm_resource_group.rg.name}\"\r\n\r\n    ip_configuration {\r\n        name = \"ipconfig1\"\r\n        subnet_id = \"${azurerm_subnet.public.id}\"\r\n        private_ip_address_allocation = \"dynamic\"\r\n        public_ip_address_id = \"${azurerm_public_ip.api.id}\"\r\n    }\r\n}\r\n```\r\n\r\n\r\nand exploted\r\n```\r\nError applying plan:\r\n\r\n1 error(s) occurred:\r\n\r\n* azurerm_network_interface.api: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.\r\n\r\nPlease include the following information in your report:\r\n\r\n    Terraform Version: 0.6.16\r\n    Resource ID: azurerm_network_interface.api\r\n    Mismatch reason: attribute mismatch: ip_configuration.~4225165691.name\r\n    Diff One (usually from plan): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{\"ip_configuration.~4225165691.name\":*terraform.ResourceAttrDiff{Old:\"\", New:\"ipconfig1\", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.4225165691.subnet_id\":*terraform.ResourceAttrDiff{Old:\"/subscriptions/594bef42-33f3-42df-b056-e7399d6ae7a0/resourceGroups/f48sn/providers/Microsoft.Network/virtualNetworks/net/subnets/public\", New:\"\", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.~4225165691.public_ip_address_id\":*terraform.ResourceAttrDiff{Old:\"\", New:\"${azurerm_public_ip.api.id}\", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.~4225165691.private_ip_address\":*terraform.ResourceAttrDiff{Old:\"\", New:\"\", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.4225165691.private_ip_address_allocation\":*terraform.ResourceAttrDiff{Old:\"dynamic\", New:\"\", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.4225165691.name\":*terraform.ResourceAttrDiff{Old:\"ipconfig1\", New:\"\", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.~4225165691.private_ip_address_allocation\":*terraform.ResourceAttrDiff{Old:\"\", New:\"dynamic\", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.~4225165691.subnet_id\":*terraform.ResourceAttrDiff{Old:\"\", New:\"/subscriptions/594bef42-33f3-42df-b056-e7399d6ae7a0/resourceGroups/f48sn/providers/Microsoft.Network/virtualNetworks/net/subnets/public\", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.~4225165691.load_balancer_backend_address_pools_ids.#\":*terraform.ResourceAttrDiff{Old:\"\", New:\"\", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, \"ip_configuration.~4225165691.load_balancer_inbound_nat_rules_ids.#\":*terraform.ResourceAttrDiff{Old:\"\", New:\"\", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:false, DestroyTainted:false}\r\n2016/05/19 18:20:49 [DEBUG] waiting for all plugin processes to complete...\r\n2016/05/19 18:20:49 [DEBUG] /root/terraform_0.6.8_linux_amd64/terraform-provider-azurerm: plugin process exited\r\n    Diff Two (usually from apply): *terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff(nil), Destroy:false, DestroyTainted:false}\r\n```\r\n\r\n"}}