{"action":"created","issue":{"url":"https://api.github.com/repos/taliesins/terraform-provider-hyperv/issues/2","repository_url":"https://api.github.com/repos/taliesins/terraform-provider-hyperv","labels_url":"https://api.github.com/repos/taliesins/terraform-provider-hyperv/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/taliesins/terraform-provider-hyperv/issues/2/comments","events_url":"https://api.github.com/repos/taliesins/terraform-provider-hyperv/issues/2/events","html_url":"https://github.com/taliesins/terraform-provider-hyperv/issues/2","id":383758106,"node_id":"MDU6SXNzdWUzODM3NTgxMDY=","number":2,"title":"Error when creating VM","user":{"login":"akaFalsh","id":12294099,"node_id":"MDQ6VXNlcjEyMjk0MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/12294099?v=4","gravatar_id":"","url":"https://api.github.com/users/akaFalsh","html_url":"https://github.com/akaFalsh","followers_url":"https://api.github.com/users/akaFalsh/followers","following_url":"https://api.github.com/users/akaFalsh/following{/other_user}","gists_url":"https://api.github.com/users/akaFalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/akaFalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaFalsh/subscriptions","organizations_url":"https://api.github.com/users/akaFalsh/orgs","repos_url":"https://api.github.com/users/akaFalsh/repos","events_url":"https://api.github.com/users/akaFalsh/events{/privacy}","received_events_url":"https://api.github.com/users/akaFalsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-23T09:48:09Z","updated_at":"2018-11-23T15:18:40Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\n### Terraform Version\r\nI am running terraform 0.10.0\r\n\r\n### Affected Resource(s)\r\n- hyperv_machine_instance\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"hyperv_machine_instance\" \"consul\" {\r\n    name = \"${var.hyperv_machine_name}\"\r\n    processor_count = 1\r\n    network_adaptors {\r\n        name = \"wan\"\r\n        switch_name = \"${var.hyperv_switch_name}\"\r\n    }\r\n    dvd_drives {\r\n        controller_number = \"0\"\r\n        controller_location = \"1\"\r\n        path = \"${var.hyperv_setup_image_location}\"\r\n        resource_pool_name = \"\"\r\n    }\r\n}\r\n```\r\n\r\n### Debug Output\r\n* hyperv_machine_instance.consul: run command operation returned code=1\r\nstderr:\r\n\r\nstdOut:\r\nUnable to find type [Microsoft.HyperV.PowerShell.CriticalErrorAction].\r\nAt C:\\Users\\VF-local\\AppData\\Local\\Temp\\shell-terraform-5bf7c8f9-00b6-ba9e-44ed\r\n-ea40dddc2dec.ps1:5 char:34\r\n+ ... rrorAction = [Microsoft.HyperV.PowerShell.CriticalErrorAction]$vm.Aut ...\r\n+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (Microsoft.Hyper...icalErrorAc\r\n   tion:TypeName) [], ParentContainsErrorRecordException\r\n    + FullyQualifiedErrorId : TypeNotFound\r\n\r\n### Expected Behavior\r\nWhat should have happened?\r\n\r\n### Actual Behavior\r\nThe resource is not created and I am unable to find shell-terraform-*.ps1 to debug\r\n\r\n### Steps to Reproduce\r\nPlease list the steps required to reproduce the issue, for example:\r\n1. `terraform apply`\r\n"},"comment":{"url":"https://api.github.com/repos/taliesins/terraform-provider-hyperv/issues/comments/441266084","html_url":"https://github.com/taliesins/terraform-provider-hyperv/issues/2#issuecomment-441266084","issue_url":"https://api.github.com/repos/taliesins/terraform-provider-hyperv/issues/2","id":441266084,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTI2NjA4NA==","user":{"login":"akaFalsh","id":12294099,"node_id":"MDQ6VXNlcjEyMjk0MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/12294099?v=4","gravatar_id":"","url":"https://api.github.com/users/akaFalsh","html_url":"https://github.com/akaFalsh","followers_url":"https://api.github.com/users/akaFalsh/followers","following_url":"https://api.github.com/users/akaFalsh/following{/other_user}","gists_url":"https://api.github.com/users/akaFalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/akaFalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaFalsh/subscriptions","organizations_url":"https://api.github.com/users/akaFalsh/orgs","repos_url":"https://api.github.com/users/akaFalsh/repos","events_url":"https://api.github.com/users/akaFalsh/events{/privacy}","received_events_url":"https://api.github.com/users/akaFalsh/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T15:18:40Z","updated_at":"2018-11-23T15:18:40Z","author_association":"NONE","body":"I am using Windows 2012 r2 also. Moved to DSC instead of terraform.\n\nOn Fri, Nov 23, 2018, 15:39 Matias Emanuel Ferrigno <\nnotifications@github.com> wrote:\n\n> The same happends with *Microsoft.HyperV.PowerShell.CheckpointType*\n> https://github.com/taliesins/terraform-provider-hyperv/blob/master/api/vm.go#L498\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/taliesins/terraform-provider-hyperv/issues/2#issuecomment-441257325>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ALuX08NYmIpq--KAr23dNHjUGxq6_tZyks5uyAingaJpZM4YwXGo>\n> .\n>\n"}}
{"actor":{"display_login":"akaFalsh"}}