{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1407","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1407/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1407/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1407/events","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/1407","id":333381666,"node_id":"MDU6SXNzdWUzMzMzODE2NjY=","number":1407,"title":"Error while trying to apply tags to an existing windows VM","user":{"login":"hashibot[bot]","id":35615658,"node_id":"MDM6Qm90MzU2MTU2NTg=","avatar_url":"https://avatars2.githubusercontent.com/in/8332?v=4","gravatar_id":"","url":"https://api.github.com/users/hashibot%5Bbot%5D","html_url":"https://github.com/apps/hashibot","followers_url":"https://api.github.com/users/hashibot%5Bbot%5D/followers","following_url":"https://api.github.com/users/hashibot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/hashibot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/hashibot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashibot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/hashibot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/hashibot%5Bbot%5D/repos","events_url":"https://api.github.com/users/hashibot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/hashibot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[{"id":620326271,"node_id":"MDU6TGFiZWw2MjAzMjYyNzE=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":859805405,"node_id":"MDU6TGFiZWw4NTk4MDU0MDU=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/microsoft/2","name":"microsoft/2","color":"ad84d8","default":false},{"id":717045227,"node_id":"MDU6TGFiZWw3MTcwNDUyMjc=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/service/virtual-machine","name":"service/virtual-machine","color":"00e6b8","default":false},{"id":625921437,"node_id":"MDU6TGFiZWw2MjU5MjE0Mzc=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/waiting-response","name":"waiting-response","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"JunyiYi","id":6908392,"node_id":"MDQ6VXNlcjY5MDgzOTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6908392?v=4","gravatar_id":"","url":"https://api.github.com/users/JunyiYi","html_url":"https://github.com/JunyiYi","followers_url":"https://api.github.com/users/JunyiYi/followers","following_url":"https://api.github.com/users/JunyiYi/following{/other_user}","gists_url":"https://api.github.com/users/JunyiYi/gists{/gist_id}","starred_url":"https://api.github.com/users/JunyiYi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunyiYi/subscriptions","organizations_url":"https://api.github.com/users/JunyiYi/orgs","repos_url":"https://api.github.com/users/JunyiYi/repos","events_url":"https://api.github.com/users/JunyiYi/events{/privacy}","received_events_url":"https://api.github.com/users/JunyiYi/received_events","type":"User","site_admin":false},"assignees":[{"login":"JunyiYi","id":6908392,"node_id":"MDQ6VXNlcjY5MDgzOTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6908392?v=4","gravatar_id":"","url":"https://api.github.com/users/JunyiYi","html_url":"https://github.com/JunyiYi","followers_url":"https://api.github.com/users/JunyiYi/followers","following_url":"https://api.github.com/users/JunyiYi/following{/other_user}","gists_url":"https://api.github.com/users/JunyiYi/gists{/gist_id}","starred_url":"https://api.github.com/users/JunyiYi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunyiYi/subscriptions","organizations_url":"https://api.github.com/users/JunyiYi/orgs","repos_url":"https://api.github.com/users/JunyiYi/repos","events_url":"https://api.github.com/users/JunyiYi/events{/privacy}","received_events_url":"https://api.github.com/users/JunyiYi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-06-18T18:20:02Z","updated_at":"2018-10-24T21:41:33Z","closed_at":"2018-10-24T21:41:33Z","author_association":"NONE","body":"_This issue was originally opened by @bostonmoto as hashicorp/terraform#18275. It was migrated here as a result of the [provider split](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/). The original body of the issue is below._\r\n\r\n<hr>\r\n\r\nEssentially I am trying to apply tags to existing windows machines, rather than the tags being applied I'm getting disk errors below. My workaround was to shutdown the VMs then I was able to apply the tags, Terraform should not have to shut down VMs to apply tags right? This is not the normal behaviour if applying tags manually via portal. Also this work for linux servers in terraform.\r\n\r\n\r\n<!--\r\nHi there,\r\n\r\nThank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.\r\n\r\nIf your issue relates to a specific Terraform provider, please open it in the provider's own repository. The index of providers is at https://github.com/terraform-providers .\r\n-->\r\n\r\n### Terraform Version 0.11.5\r\n<!---\r\nRun `terraform -v` to show the version, and paste the result between the ``` marks below.\r\n\r\nIf you are not running the latest version of Terraform, please try upgrading because your issue may have already been fixed.\r\n-->\r\n\r\n```\r\n...\r\n```\r\n\r\n### Terraform Configuration Files\r\n<!--\r\nPaste the relevant parts of your Terraform configuration between the ``` marks below.\r\n\r\nFor large Terraform configs, please use a service like Dropbox and share a link to the ZIP file. For security, you can also encrypt the files using our GPG public key.\r\n-->\r\n\r\n```hcl\r\n...\r\n```\r\n\r\n### Debug Output\r\n<!--\r\nFull debug output can be obtained by running Terraform with the environment variable `TF_LOG=trace`. Please create a GitHub Gist containing the debug output. Please do _not_ paste the debug output in the issue, since debug output is long.\r\n\r\nDebug output may contain sensitive information. Please review it before posting publicly, and if you are concerned feel free to encrypt the files using the HashiCorp security public key.\r\n-->\r\n\r\n### Crash Output\r\n<!--\r\nIf the console output indicates that Terraform crashed, please share a link to a GitHub Gist containing the output of the `crash.log` file.\r\n-->\r\n\r\n### Expected Behavior\r\nTagging existing windows VM, windows VM should have the tags\r\nWhat should have happened?\r\n\r\n\r\n### Actual Behavior\r\n\r\nWhat actually happened? \r\nAn execution plan has been generated and is shown below.\r\nResource actions are indicated with the following symbols:\r\n  ~ update in-place\r\n\r\nTerraform will perform the following actions:\r\n\r\n  ~ module.application.module.clu.module.win.azurerm_virtual_machine.instance\r\n      tags.%:           \"0\" => \"3\"\r\n      tags.Application: \"\" => \"CLU\"\r\n      tags.Environment: \"\" => <computed>\r\n      tags.Role:        \"\" => <computed>\r\n\r\nThen Running Apply\r\n\r\nmodule.application.module.clu.module.win.azurerm_virtual_machine.instance: Modifying... (ID: /subscriptions/XXXXX-...ompute/virtualMachines/app001)\r\n  tags.%:           \"0\" => \"3\"\r\n  tags.Application: \"\" => \"CLU\"\r\n  tags.Environment: \"\" => \"<computed>\"\r\n  tags.Role:        \"\" => \"<computed>\"\r\nError: Error applying plan:\r\n\r\n1 error(s) occurred:\r\n\r\n* module.application.module.clu.module.win.azurerm_virtual_machine.instance: 1 error(s) occurred:\r\n\r\n* azurerm_virtual_machine.instance: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code=\"Conflict\" Message=\"Disk resizing is allowed only when creating a VM or when the VM is deallocated.\" Target=\"disk.diskSizeGB\"\r\n\r\n\r\n\r\n### Steps to Reproduce\r\n<!--\r\nPlease list the full steps required to reproduce the issue, for example:\r\n1. `terraform init`\r\n2. `terraform apply`\r\n-->\r\n\r\n### Additional Context\r\n<!--\r\nAre there anything atypical about your situation that we should know? For example: is Terraform running in a wrapper script or in a CI system? Are you passing any unusual command line options or environment variables to opt-in to non-default behavior?\r\n-->\r\n\r\n### References\r\n<!--\r\nAre there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:\r\n\r\n- hashicorp/terraform#6017\r\n\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/comments/432838322","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/1407#issuecomment-432838322","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1407","id":432838322,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjgzODMyMg==","user":{"login":"tombuildsstuff","id":666005,"node_id":"MDQ6VXNlcjY2NjAwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/666005?v=4","gravatar_id":"","url":"https://api.github.com/users/tombuildsstuff","html_url":"https://github.com/tombuildsstuff","followers_url":"https://api.github.com/users/tombuildsstuff/followers","following_url":"https://api.github.com/users/tombuildsstuff/following{/other_user}","gists_url":"https://api.github.com/users/tombuildsstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/tombuildsstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombuildsstuff/subscriptions","organizations_url":"https://api.github.com/users/tombuildsstuff/orgs","repos_url":"https://api.github.com/users/tombuildsstuff/repos","events_url":"https://api.github.com/users/tombuildsstuff/events{/privacy}","received_events_url":"https://api.github.com/users/tombuildsstuff/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T21:41:33Z","updated_at":"2018-10-24T21:41:33Z","author_association":"CONTRIBUTOR","body":"hi @martinbjorgan @schokkarapu-rms @schokkarapu-rms \r\n\r\nSince we've not heard back from you here I'm going to close this issue for the moment - but please feel free to let us know if this is still an issue using the latest version of the provider and we'll take another look :)\r\n\r\nThanks!"}}
{"actor":{"display_login":"tombuildsstuff"}}