{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6733","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6733/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6733/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6733/events","html_url":"https://github.com/hashicorp/terraform/issues/6733","id":155399369,"number":6733,"title":"azure (classic) provisioning with winrm wont work","user":{"login":"MattFenner","id":1695492,"avatar_url":"https://avatars.githubusercontent.com/u/1695492?v=3","gravatar_id":"","url":"https://api.github.com/users/MattFenner","html_url":"https://github.com/MattFenner","followers_url":"https://api.github.com/users/MattFenner/followers","following_url":"https://api.github.com/users/MattFenner/following{/other_user}","gists_url":"https://api.github.com/users/MattFenner/gists{/gist_id}","starred_url":"https://api.github.com/users/MattFenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattFenner/subscriptions","organizations_url":"https://api.github.com/users/MattFenner/orgs","repos_url":"https://api.github.com/users/MattFenner/repos","events_url":"https://api.github.com/users/MattFenner/events{/privacy}","received_events_url":"https://api.github.com/users/MattFenner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T01:39:12Z","updated_at":"2016-05-18T01:41:25Z","closed_at":null,"body":"Hi, when ever i try to run a remote-exec or file provisioner it fails to work (i'm guessing they are both trying to use winrm). (havn't tried chef yet)\r\n\r\nAt the moment i am just using the marketplace image \"Windows 8.1 Enterprise N (x64)\".\r\n\r\ni have opened all the endpoints that i think i should need in the tf file.\r\n\r\ne.g.\r\n```\r\n\r\n    endpoint {\r\n        name = \"RDP\"\r\n        protocol = \"tcp\"\r\n        public_port = 3389\r\n        private_port = 3389\r\n    }\r\n\r\n    endpoint {\r\n        name = \"WinRM-SSL\"\r\n        protocol = \"tcp\"\r\n        public_port = 5986\r\n        private_port = 5986\r\n    }\r\n\r\n    endpoint {\r\n        name = \"WinRM\"\r\n        protocol = \"tcp\"\r\n        public_port = 5985\r\n        private_port = 5985\r\n    }\r\n```\r\n\r\nalso for good measure i have added\r\n\r\n```\r\nresource \"azure_security_group_rule\" \"ait\" {\r\n    name = \"allowall\"\r\n    security_group_names = [\"${azure_security_group.ait.name}\"]\r\n    type = \"Inbound\"\r\n    action = \"Allow\"\r\n    priority = 200\r\n    source_address_prefix = \"*\"\r\n    source_port_range = \"*\"\r\n    destination_address_prefix = \"*\"\r\n    destination_port_range = \"*\"\r\n    protocol = \"TCP\"\r\n}\r\n```\r\n\r\nis there some modifications that i have to make to the base image to make this work, or should it just work out of the box?"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/219902966","html_url":"https://github.com/hashicorp/terraform/issues/6733#issuecomment-219902966","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/6733","id":219902966,"user":{"login":"MattFenner","id":1695492,"avatar_url":"https://avatars.githubusercontent.com/u/1695492?v=3","gravatar_id":"","url":"https://api.github.com/users/MattFenner","html_url":"https://github.com/MattFenner","followers_url":"https://api.github.com/users/MattFenner/followers","following_url":"https://api.github.com/users/MattFenner/following{/other_user}","gists_url":"https://api.github.com/users/MattFenner/gists{/gist_id}","starred_url":"https://api.github.com/users/MattFenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattFenner/subscriptions","organizations_url":"https://api.github.com/users/MattFenner/orgs","repos_url":"https://api.github.com/users/MattFenner/repos","events_url":"https://api.github.com/users/MattFenner/events{/privacy}","received_events_url":"https://api.github.com/users/MattFenner/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T01:41:25Z","updated_at":"2016-05-18T01:41:25Z","body":"i should mention that when i try (using the ip address of my vm)\r\n`telnet XX.XX.XXX.XX 5986`\r\n\r\nit fails with ```Could not open connection to the host, on port 5986: Connect failed```"}}