{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/packer-azure/issues/122","repository_url":"https://api.github.com/repos/Azure/packer-azure","labels_url":"https://api.github.com/repos/Azure/packer-azure/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/Azure/packer-azure/issues/122/comments","events_url":"https://api.github.com/repos/Azure/packer-azure/issues/122/events","html_url":"https://github.com/Azure/packer-azure/issues/122","id":123283236,"number":122,"title":"Restarting VM...","user":{"login":"bblanchon","id":5462433,"avatar_url":"https://avatars.githubusercontent.com/u/5462433?v=3","gravatar_id":"","url":"https://api.github.com/users/bblanchon","html_url":"https://github.com/bblanchon","followers_url":"https://api.github.com/users/bblanchon/followers","following_url":"https://api.github.com/users/bblanchon/following{/other_user}","gists_url":"https://api.github.com/users/bblanchon/gists{/gist_id}","starred_url":"https://api.github.com/users/bblanchon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblanchon/subscriptions","organizations_url":"https://api.github.com/users/bblanchon/orgs","repos_url":"https://api.github.com/users/bblanchon/repos","events_url":"https://api.github.com/users/bblanchon/events{/privacy}","received_events_url":"https://api.github.com/users/bblanchon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-21T13:53:17Z","updated_at":"2016-04-27T16:40:24Z","closed_at":null,"body":"Hi,\r\n\r\nI tried to reboot the VM using the [Windows Restart Provisionner](https://packer.io/docs/provisioners/windows-restart.html) but it didn't work.\r\nI was using the image \"Windows Server 2012 R2 Datacenter, November 2015\" and even put a timeout of 30 minutes.\r\n\r\nAny advice?"},"comment":{"url":"https://api.github.com/repos/Azure/packer-azure/issues/comments/215142549","html_url":"https://github.com/Azure/packer-azure/issues/122#issuecomment-215142549","issue_url":"https://api.github.com/repos/Azure/packer-azure/issues/122","id":215142549,"user":{"login":"boumenot","id":91112,"avatar_url":"https://avatars.githubusercontent.com/u/91112?v=3","gravatar_id":"","url":"https://api.github.com/users/boumenot","html_url":"https://github.com/boumenot","followers_url":"https://api.github.com/users/boumenot/followers","following_url":"https://api.github.com/users/boumenot/following{/other_user}","gists_url":"https://api.github.com/users/boumenot/gists{/gist_id}","starred_url":"https://api.github.com/users/boumenot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boumenot/subscriptions","organizations_url":"https://api.github.com/users/boumenot/orgs","repos_url":"https://api.github.com/users/boumenot/repos","events_url":"https://api.github.com/users/boumenot/events{/privacy}","received_events_url":"https://api.github.com/users/boumenot/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T16:40:24Z","updated_at":"2016-04-27T16:40:24Z","body":"Are you able to try the ARM version instead?  We're focusing on this version going forward.  I cannot think of any specific issue that's addressed by the ARM version in relation to this issue, but this is the code I'm most familiar with.\r\n\r\nI'm just spit balling, so here are some other ideas.\r\n\r\n * You only have one provisioner, and it is for Windows restart, which seems odd to me.  How does packer know to gate the success?  I would suggest a shell provisioner that executes a dummy operation, e.g. dir to ensure the box is executing commands.  If you can actually inspect that your apps have completed installation via a batch script then I would do so.\r\n * Does the build complete without the restart?  Is the issue specific to your use of restart?\r\n\r\nIt's going to take me some time, but let me see if I can reproduce the issue myself.\r\n"}}