I have been using AWS EBS Windows AMI with packers for a long time.
I am trying to build a Azure Windows VM and running into issues.
If I don't sysprep the VM everything works well. I can use ARM template and 
provision windows VM from it.
However I need to provison VM scalesets. They require sysprepped image.

So I added a new provisoner at the end of building the image.

    {
      "type": "windows-shell",
      "pause_before": "10s",
     "scripts": [
        "{{user `scripts_dir`}}/sysprep.bat"
      ]
    }


 It runs sysprep.bat file which looks like this.
%windir%\system32\sysprep\sysprep.exe /generalize /oobe /shutdown

Image was built successfully with no errors

However when I provision the VM scaleset the deployment never finishes. It 
just hangs.
If I replace my custom image with a stock windows server 2012 R2 image VMSS 
provisions

So I am looking for a simple example of building a sysprepped windows 
vm for Azure.

Many thanks for your help in advance. 

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/e76c7fd0-64f2-4520-bea4-0e67b8cb1da8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to